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

Attempt to use otel-collector #533

Closed
gianarb opened this issue Mar 9, 2020 · 3 comments
Closed

Attempt to use otel-collector #533

gianarb opened this issue Mar 9, 2020 · 3 comments

Comments

@gianarb
Copy link

gianarb commented Mar 9, 2020

Hello my application successfully writes traces in the stdout but I decided to try the recently merged PR #497 but I can't get it working:

				logger.Info("Used the tracer output otel-collector")
				exp, err := otlp.NewExporter(otlp.WithInsecure())
				if err != nil {
					log.Fatalf("Failed to create the collector exporter: %v", err)
				}
				defer func() {
					_ = exp.Stop()
				}()

				tp, _ := sdktrace.NewProvider(
					sdktrace.WithConfig(sdktrace.Config{DefaultSampler: sdktrace.AlwaysSample()}),
					sdktrace.WithBatcher(exp, // add following two options to ensure flush
						sdktrace.WithScheduleDelayMillis(5),
						sdktrace.WithMaxExportBatchSize(10),
					))
				if err != nil {
					log.Fatalf("error creating trace provider: %v\n", err)
				}

				global.SetTraceProvider(tp)

I cloned the collector and I am using this configuration:

receivers:
  opencensus:
    endpoint: 0.0.0.0:55678
processors:
  batch:
  queued_retry:
exporters:
  logging:
    loglevel: debug
  jaeger_grpc:
    endpoint: "http://localhost:14250"
service:
  pipelines:
    traces:
      receivers: [opencensus]
      processors: [batch, queued_retry]
      exporters: [jaeger_grpc, logging]

But I do not see any log in the collector, and nothing in jaeger. I don't know what to look at at this point

any pointer?

@gianarb
Copy link
Author

gianarb commented Mar 9, 2020

I was reading around and if I am well reading this PR

open-telemetry/opentelemetry-collector#574 (comment)

The opentelemetry proto receiver does not exist yet. So I presume I have to change receiver and tracer to something that is not opentelemetry grpc but to jaeger

@gianarb
Copy link
Author

gianarb commented Mar 9, 2020

Ok after a chat on Gitter I am right, at the moment there is not otel collector receiver for the grpc protocol, so at the moment it can not be used.

my plan for now is to switch to Jaeger tracer for the project I am working

@MrAlias
Copy link
Contributor

MrAlias commented Mar 9, 2020

@gianarb okay to close this?

@gianarb gianarb closed this as completed Mar 9, 2020
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

No branches or pull requests

2 participants