Skip to content

Add decorator with operation name to Route#171

Merged
mattklein123 merged 3 commits intoenvoyproxy:masterfrom
objectiser:tracing
Sep 12, 2017
Merged

Add decorator with operation name to Route#171
mattklein123 merged 3 commits intoenvoyproxy:masterfrom
objectiser:tracing

Conversation

@objectiser
Copy link
Copy Markdown
Contributor

No description provided.

@objectiser
Copy link
Copy Markdown
Contributor Author

@htuch @mattklein123 Updated definition as discussed on #170

Comment thread api/rds.proto Outdated
string path_redirect = 2;
}

message TracingDecorator {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on just naming this "Decorator" ? As I said before I think this may end up getting used beyond tracing. For example we could later add an option to add dynamic stats for this decorated route. Useful for logging also potentially.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, small nits

Comment thread api/rds.proto Outdated
// See base.Metadata description.
Metadata metadata = 4;

// Decorator for matched route
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: period end of sentence

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread api/rds.proto Outdated
}

message Decorator {
// The tracing operation (or span name) to be used for the matched route.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can we reword comment to be not tracing specific.

@mattklein123 mattklein123 changed the title tracing: Add decorator with operation name to Route Add decorator with operation name to Route Sep 12, 2017
@mattklein123 mattklein123 merged commit 64ef6e3 into envoyproxy:master Sep 12, 2017
@objectiser objectiser deleted the tracing branch September 13, 2017 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants