Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opentracing middleware: Add Option to put proto request in span for certain methods. #273

Open
bwplotka opened this issue Feb 25, 2020 · 5 comments

Comments

@bwplotka
Copy link
Collaborator

AC:

  • We can enrich tracing in a generic way.
@jackskj
Copy link

jackskj commented May 20, 2020

If this issue is not in development, I can take a stab at it, it would come in handy.

@bwplotka
Copy link
Collaborator Author

Yes please help! Make sure you to actually do it on v2 branch which will be released soon. See: #275

Also I think we might need help in #277 which might more interesting to solve (:

@jackskj
Copy link

jackskj commented May 21, 2020

Oh I see, #277 seems like a it should be resolved before this issue.
If it’s not assigned to anyone, I can migrate over to opentracing-go

@jackskj
Copy link

jackskj commented May 21, 2020

However, pushing entire request in the spawn may cause unnecessarily large amount of data collection. Do you think using field option is a worthy addition?

syntax = "proto3";
import "google/protobuf/descriptor.proto";
package tracing;
extend google.protobuf.FieldOptions {
    bool trace = 50000;
}

message MyMessage {
    string stuff = 1 [(tracing.trace) = true];
}

@bwplotka
Copy link
Collaborator Author

bwplotka commented May 21, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants