title: unable to hook up opentelemetry collector with grafana tempo
body: <p>I am unable to get otel collector to work, I'm new to opentelemetry, so it feels I'm making a stupid error in congiration somewhere</p>
  <p>this is my python sample script that is supposed to create a sample trace that should be exported, picked up by opentelemetry-collector and pushed into grafana tempo backend</p>
  <pre class="lang-py prettyprint-override"><code>from opentelemetry import trace
  from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import (
      OTLPSpanExporter,
  )
  from opentelemetry.sdk.trace import TracerProvider
  from opentelemetry.sdk.trace.export import (
      BatchSpanProcessor,
      ConsoleSpanExporter,
  )
  
  span_exporter = OTLPSpanExporter(
     # endpoint=&quot;http://tempo.monitoring:3100&quot;
     endpoint=&quot;10.120.4.111&quot;
     # endpoint=&quot;http://10.120.7.235:4317&quot;
  )
  provider = TracerProvider()
  processor = BatchSpanProcessor(ConsoleSpanExporter())
  span_processor = BatchSpanProcessor(span_exporter)
  provider.add_span_processor(processor)
  provider.add_span_processor(span_processor)
  trace.set_tracer_provider(provider)
  
  
  tracer = trace.get_tracer(__name__)
  
  with tracer.start_as_current_span(&quot;foo&quot;):
      with tracer.start_as_current_span(&quot;bar&quot;):
          with tracer.start_as_current_span(&quot;baz&quot;):
              print(&quot;Hello world from OpenTelemetry Python!&quot;)
  </code></pre>
  <p><strong>this is the output when I run it:</strong></p>
  <pre><code>description should only be set when status_code is set to StatusCode.ERROR
  Hello world from OpenTelemetry Python!
  {
      &quot;name&quot;: &quot;baz&quot;,
      &quot;context&quot;: {
          &quot;trace_id&quot;: &quot;0xbc86870da9156c784c340ca16042bf6b&quot;,
          &quot;span_id&quot;: &quot;0xdd38d089ff192445&quot;,
          &quot;trace_state&quot;: &quot;[]&quot;
      },
      &quot;kind&quot;: &quot;SpanKind.INTERNAL&quot;,
      &quot;parent_id&quot;: &quot;1c559a143ee166cd&quot;,
      &quot;start_time&quot;: &quot;2021-10-08T22:56:27.973528Z&quot;,
      &quot;end_time&quot;: &quot;2021-10-08T22:56:27.973569Z&quot;,
      &quot;status&quot;: {
          &quot;status_code&quot;: &quot;UNSET&quot;
      },
      &quot;attributes&quot;: {},
      &quot;events&quot;: [],
      &quot;links&quot;: [],
      &quot;resource&quot;: {
          &quot;telemetry.sdk.language&quot;: &quot;python&quot;,
          &quot;telemetry.sdk.name&quot;: &quot;opentelemetry&quot;,
          &quot;telemetry.sdk.version&quot;: &quot;1.0.0&quot;,
          &quot;service.name&quot;: &quot;unknown_service&quot;
      }
  }
  {
      &quot;name&quot;: &quot;bar&quot;,
      &quot;context&quot;: {
          &quot;trace_id&quot;: &quot;0xbc86870da9156c784c340ca16042bf6b&quot;,
          &quot;span_id&quot;: &quot;0x1c559a143ee166cd&quot;,
          &quot;trace_state&quot;: &quot;[]&quot;
      },
      &quot;kind&quot;: &quot;SpanKind.INTERNAL&quot;,
      &quot;parent_id&quot;: &quot;0a5bd46eef0c046a&quot;,
      &quot;start_time&quot;: &quot;2021-10-08T22:56:27.973497Z&quot;,
      &quot;end_time&quot;: &quot;2021-10-08T22:56:27.973611Z&quot;,
      &quot;status&quot;: {
          &quot;status_code&quot;: &quot;UNSET&quot;
      },
      &quot;attributes&quot;: {},
      &quot;events&quot;: [],
      &quot;links&quot;: [],
      &quot;resource&quot;: {
          &quot;telemetry.sdk.language&quot;: &quot;python&quot;,
          &quot;telemetry.sdk.name&quot;: &quot;opentelemetry&quot;,
          &quot;telemetry.sdk.version&quot;: &quot;1.0.0&quot;,
          &quot;service.name&quot;: &quot;unknown_service&quot;
      }
  }
  {
      &quot;name&quot;: &quot;foo&quot;,
      &quot;context&quot;: {
          &quot;trace_id&quot;: &quot;0xbc86870da9156c784c340ca16042bf6b&quot;,
          &quot;span_id&quot;: &quot;0x0a5bd46eef0c046a&quot;,
          &quot;trace_state&quot;: &quot;[]&quot;
      },
      &quot;kind&quot;: &quot;SpanKind.INTERNAL&quot;,
      &quot;parent_id&quot;: null,
      &quot;start_time&quot;: &quot;2021-10-08T22:56:27.973419Z&quot;,
      &quot;end_time&quot;: &quot;2021-10-08T22:56:27.973622Z&quot;,
      &quot;status&quot;: {
          &quot;status_code&quot;: &quot;UNSET&quot;
      },
      &quot;attributes&quot;: {},
      &quot;events&quot;: [],
      &quot;links&quot;: [],
      &quot;resource&quot;: {
          &quot;telemetry.sdk.language&quot;: &quot;python&quot;,
          &quot;telemetry.sdk.name&quot;: &quot;opentelemetry&quot;,
          &quot;telemetry.sdk.version&quot;: &quot;1.0.0&quot;,
          &quot;service.name&quot;: &quot;unknown_service&quot;
      }
  }
  
  </code></pre>
  <p><strong>However this trace is nowhere to be found in grafana tempo</strong>:</p>
  <pre class="lang-sh prettyprint-override"><code>curl http://tempo.monitoring:3100/api/traces/bc86870da9156c784c340ca16042bf6b
  trace not found in Tempo
  </code></pre>
  <p><strong>opentelemtry-collector pods are not showing anything valuable</strong></p>
  <pre><code>monitoring/opentelemetry-collector-agent-fhcd2[opentelemetry-collector]: 2021-10-08T22:58:16.162Z   INFO    loggingexporter/logging_exporter.go:375 MetricsExporter {&quot;#metrics&quot;: 15}
  monitoring/opentelemetry-collector-agent-bbsk8[opentelemetry-collector]: 2021-10-08T22:58:21.490Z   INFO    loggingexporter/logging_exporter.go:375 MetricsExporter {&quot;#metrics&quot;: 15}
  monitoring/opentelemetry-collector-agent-z8jlp[opentelemetry-collector]: 2021-10-08T22:58:22.314Z   INFO    loggingexporter/logging_exporter.go:375 MetricsExporter {&quot;#metrics&quot;: 15}
  </code></pre>
  <p><strong>grafana tempo is &quot;numb&quot; as well</strong></p>
  <pre><code>monitoring/tempo-0[tempo]: level=info ts=2021-10-08T22:40:33.403096615Z caller=frontend.go:114 tenant=single-tenant method=GET traceID=470d349a2aa1a574 url=/api/traces/742a5bfccbfb8df24251a19c85600818 duration=1.040366ms response_size=0 status=404
  monitoring/tempo-0[tempo]: level=info ts=2021-10-08T22:45:11.168260856Z caller=frontend.go:114 tenant=single-tenant method=GET traceID=281b800cb325d227 url=/api/traces/d2da9c5a4638245a8b7d8807934778bc duration=1.969761ms response_size=0 status=404
  monitoring/tempo-0[tempo]: level=info ts=2021-10-08T22:57:32.889567771Z caller=frontend.go:114 tenant=single-tenant method=GET traceID=2f1eee7bb623353d url=/api/traces/bc86870da9156c784c340ca16042bf6b duration=1.123504ms response_size=0 status=404
  host 10.120.4.11 has ports opened
  [root@utils /]# curl -X POST 10.120.4.111:4317
  curl: (1) Received HTTP/0.9 when not allowed
  opentelemetry is running through this helm chart: https://open-telemetry.github.io/opentelemetry-helm-charts
  </code></pre>
  <p><strong>config for opentelemetry helm chart</strong></p>
  <pre><code>config:
    exporters:
      logging: 
        loglevel: info
      otlp:
        endpoint: tempo.monitoring:4317
    receivers:
      otlp:
        grpc:
        http:
    service:
      pipelines:
        traces:
          receivers:
            - otlp
            - jaeger
            - zipkin
          processors:
            - batch
            - memory_limiter
          exporters:
            - logging
            - otlp
  
  nodeSelector:
    apps: &quot;true&quot;            
  standaloneCollector:
    enabled: false
  </code></pre>
  <p>So I tried different values with config.exporters.otlp.endpoint - no effect.</p>
  <h3>Any ideas?</h3>