open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.13k stars 2.4k forks source link

no timestamp value #33412

Open yoyoraso opened 5 months ago

yoyoraso commented 5 months ago

Component(s)

exporter/kafka

What happened?

Description

Hi I send data to reciever otlp and export by two ways (file and kafka) I can see in the file a Timestamp value and ObservedTimestamp but for the kafka I don't see any in the message only Trace ID and Span ID

Steps to Reproduce

Expected Result

Actual Result

Collector version

latest otel/opentelemetry-collector-contrib image

Environment information

Environment

kubernetes cluster on ubuntu linux

OpenTelemetry Collector configuration

receivers: 
      otlp:
        protocols:
          grpc:
            endpoint: 0.0.0.0:4317
          http:
            endpoint: 0.0.0.0:4318
    processors:
      batch:

    exporters:
      file:
        path: /tmp/otel-logfile.log      
      debug:
        verbosity: detailed      
      kafka:
        brokers:
          - ******
        topic: otel-kafka
        encoding: otlp_json
        producer:
          compression: gzip
    service:
      pipelines:
        logs:
          receivers: [otlp]
          processors: [batch]
          exporters: [debug,kafka]          
        traces:
          receivers: [otlp]
          processors: [batch]
          exporters: [kafka]          
      telemetry:
        logs:
          level: "debug"

Log output

No response

Additional context

No response

github-actions[bot] commented 5 months ago

Pinging code owners:

frzifus commented 5 months ago

Is that the case for all kinds of signals?

I assume latest means v0.102.0?

github-actions[bot] commented 3 months ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

atoulme commented 2 months ago

Can you please give us a reproducible test case?

github-actions[bot] commented 6 hours ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.