-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix OTLP waitForReady, not set from config #1254
Conversation
Signed-off-by: Bogdan Drutu <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1254 +/- ##
==========================================
- Coverage 88.54% 88.50% -0.04%
==========================================
Files 207 207
Lines 14945 14948 +3
==========================================
- Hits 13233 13230 -3
- Misses 1283 1286 +3
- Partials 429 432 +3
Continue to review full report at Codecov.
|
gs.logExporter = otlplogcol.NewLogServiceClient(gs.grpcClientConn) | ||
gs.metadata = metadata.New(config.GRPCClientSettings.Headers) | ||
|
||
gs := &grpcSender{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: You don't need the gs
variable anymore, can just return inline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had that before, but I kind of don't like that the error nil is most invisible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a decent compiler should inline that so not worried that much
Signed-off-by: Bogdan Drutu <[email protected]>
* Update Span API event methods Remove the context argument from the event methods. It is unused and can be added back in as a passed option if needed in the future. Update AddEvent to accept a required name and a set of options. These options are the new EventOption type that can be used to configure a SpanConfig Timestamp and Attributes. Remove the AddEventWithTimestamp method as it is redundant to calling AddEvent with a WithTimestamp option. Update RecordError to also accept the EventOptions. * Add changes to CHANGELOG * Add LifeCycleOption Use the LifeCycleOption to encapsulate the options passed to a span for life cycle events.
No description provided.