Skip to content

OpenTelemetry logs: EventName is being dropped by VectorΒ #24417

@hemanthbee

Description

@hemanthbee

A note for the community

  • Please vote on this issue by adding a πŸ‘ reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

EventName dropped from OpenTelemetry log records when they pass through Vector.

Configuration

api:
  enabled: true
  address: "0.0.0.0:8686"

sources:
  otlp_logs:
    type: opentelemetry
    grpc:
      address: 0.0.0.0:4317
    http:
      address: 0.0.0.0:4318
    
sinks:
  kafka_logs:
    type: kafka
    inputs:
      - otlp_logs.logs
    bootstrap_servers: localhost:9094
    topic: pulse.logs.anr_crash
    encoding:
      codec: json
    healthcheck:
      enabled: false
    buffer:
      type: memory
      max_events: 1000
    batch:
      max_events: 2
      timeout_secs: 20
  
  console:
    type: console
    inputs:
      - otlp_logs.logs
    encoding:
      codec: json

Version

Built the vector locally from master branch(v0.52.0)

Debug Output


Example Data

{
"attributes": {
"error.fatal": false,
"error.source": "js",
"exception.message": "Handled error (demo)",
"exception.stacktrace": "Error: Handled error (demo)\n at triggerHandledError (address at index.android.bundle:1:964350)\n at _performTransitionSideEffects (address at index.android.bundle:1:450230)\n at _receiveSignal (address at index.android.bundle:1:449834)\n at onResponderRelease (address at index.android.bundle:1:448671)\n at executeDispatch (address at index.android.bundle:1:121994)\n at executeDispatchesAndReleaseTopLevel (address at index.android.bundle:1:127546)\n at forEach (native)\n at forEachAccumulated (address at index.android.bundle:1:123507)\n at anonymous (address at index.android.bundle:1:128004)\n at batchedUpdatesImpl (address at index.android.bundle:1:197484)\n at batchedUpdates$1 (address at index.android.bundle:1:127472)\n at dispatchEvent (address at index.android.bundle:1:127750)",
"exception.type": "Error",
"network.carrier.icc": "us",
"network.carrier.mcc": "310",
"network.carrier.mnc": "260",
"network.carrier.name": "T-Mobile",
"network.connection.type": "wifi",
"pulse.type": "non_fatal",
"screen.name": "MainActivity",
"session.id": "f6fa2b27e3bb0ad379556a159de14cf0",
"thread.id": "134",
"thread.name": "mqt_v_js"
},
"dropped_attributes_count": 0,
"message": "Handled error (demo)",
"observed_timestamp": "2025-12-29T09:38:04.827Z",
"resources": {
"android.os.api_level": "36",
"app.build_id": "1",
"app.build_name": "1.0_1",
"device.manufacturer": "Google",
"device.model.identifier": "sdk_gphone64_arm64",
"device.model.name": "sdk_gphone64_arm64",
"os.description": "BE2A.250530.026.D1",
"os.name": "Android",
"os.type": "linux",
"os.version": "16",
"rum.sdk.version": "0.0.1-alpha",
"service.name": "PulseReactNativeOtelExample",
"service.version": "1.0_1",
"telemetry.sdk.language": "java",
"telemetry.sdk.name": "opentelemetry",
"telemetry.sdk.version": "1.54.1"
},
"scope": {
"name": "com.pulse.android.sdk"
},
"source_type": "opentelemetry",
"timestamp": "2025-12-29T09:38:04.827Z"
}

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugA code related bug.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions