Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Added support for exporting traces from agent through unary grpc #72

Closed
wants to merge 1 commit into from

Conversation

owais
Copy link

@owais owais commented Jul 3, 2019

go.mod Outdated
@@ -9,3 +9,5 @@ require (
google.golang.org/api v0.5.0
google.golang.org/grpc v1.21.0
)

replace github.com/census-instrumentation/opencensus-proto => github.com/owais/opencensus-proto v0.3.0-pr-202
Copy link
Author

Choose a reason for hiding this comment

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

Will be removed once census-instrumentation/opencensus-proto#202 is merged and 0.3.0 is released

@owais
Copy link
Author

owais commented Jul 3, 2019

//cc @pjanotti @tigrannajaryan @songy23

@owais owais force-pushed the unary-rpc-exporter branch 2 times, most recently from 9a2d978 to 8f0d6be Compare July 4, 2019 12:33
- Added `WithUnaryBatchExporter` option to enable unary communication
@owais owais force-pushed the unary-rpc-exporter branch from 8f0d6be to c40d41b Compare July 8, 2019 19:35

default:
if lastConnectErr := ae.lastConnectError(); lastConnectErr != nil {
return fmt.Errorf("ExportTraceServiceRequest: no active connection, last connection error: %v", lastConnectErr)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you're touching this code, could you please move the fmt.Errorf to where the last connection error is set? This way we avoid this formatting code in a possible hot path.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. Will do if/when we move forward with up-streaming unary.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants