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

Change instrumentation to use otel-go for trace #1833

Closed
wants to merge 1 commit into from

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Sep 22, 2020

Some "breaking" changes:

  • Z-pages not yet available for otel-go trace (or not able to find them).
  • For otlp-grpc we have not enabled tracing so everything continues to work correctly.
  • For oc-grpc we used opencensus with grpc-trace-bin header. This will break, not sure if this is used anywhere.

@codecov
Copy link

codecov bot commented Sep 22, 2020

Codecov Report

Merging #1833 into master will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1833      +/-   ##
==========================================
- Coverage   91.11%   91.07%   -0.04%     
==========================================
  Files         263      263              
  Lines       16109    16139      +30     
==========================================
+ Hits        14677    14698      +21     
- Misses       1004     1015      +11     
+ Partials      428      426       -2     
Impacted Files Coverage Δ
obsreport/obsreport.go 96.55% <ø> (+2.26%) ⬆️
exporter/exporterhelper/common.go 100.00% <100.00%> (ø)
exporter/exporterhelper/logshelper.go 100.00% <100.00%> (ø)
exporter/exporterhelper/metricshelper.go 91.66% <100.00%> (+0.23%) ⬆️
exporter/exporterhelper/tracehelper.go 100.00% <100.00%> (ø)
obsreport/observability.go 100.00% <100.00%> (ø)
obsreport/obsreport_exporter.go 97.84% <100.00%> (-0.07%) ⬇️
obsreport/obsreport_receiver.go 100.00% <100.00%> (ø)
obsreport/obsreporttest/obsreporttest.go 96.77% <100.00%> (+2.43%) ⬆️
receiver/opencensusreceiver/octrace/opencensus.go 89.28% <100.00%> (+0.39%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb21271...bcabeb8. Read the comment docs.

@tigrannajaryan tigrannajaryan self-assigned this Sep 23, 2020
Comment on lines +158 to +161
tracer := tProvider.Tracer("grpc")
opts := append(extraOpts,
grpc.UnaryInterceptor(otelgrpc.UnaryServerInterceptor(tracer)),
grpc.StreamInterceptor(otelgrpc.StreamServerInterceptor(tracer)))
Copy link
Member

Choose a reason for hiding this comment

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

Add comments to explains what does this do.

@@ -45,7 +48,8 @@ const (
)

var (
tagKeyExporter, _ = tag.NewKey(ExporterKey)
defaultExportTracer = global.Tracer("")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this is not consistent with the exporter helper that uses "go.opentelemetry.io/collector/exporter"

@@ -53,6 +56,7 @@ func New(instanceName string, nextConsumer consumer.TraceConsumer, opts ...Optio
ocr := &Receiver{
nextConsumer: nextConsumer,
instanceName: instanceName,
tracer: global.Tracer("go.opentelemetry.io/collector/receiver/opencensus"),
Copy link
Contributor

Choose a reason for hiding this comment

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

At first it seems that the "opencensus" suffix is not consistent with the tracer for other receivers and components, ie.: they will be under "exporter", "receiver", and so on.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2020

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Oct 10, 2020
@bogdandrutu bogdandrutu deleted the oteltracego branch January 13, 2021 18:47
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
* add sqlquery receiver from contrib

* pin testcontainers to 0.11.1

Co-authored-by: Ryan Fitzpatrick <[email protected]>
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants