Skip to content

[kafkareceiver] add support for otlp_json which accepts json formated for Otel Collector kafka receiver #33627

Closed
@govardhanda-Kore

Description

@govardhanda-Kore

Component(s)

receiver/kafka

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

add support for otlp_json which accepts json formatted oltp data same as http/json in otel collector (Receiver)

const otelresourcespans = {
"resourceSpans": [
{
"resource": {
"attributes": [
{
key: 'service.name',
value: { stringValue: 'serviceName' }
}
]
},
"scopeSpans": [
{
"scope": {
"name": "my.library",
"version": "1.0.0",
"attributes": [
{
"key": "my.scope.attribute",
"value": {
"stringValue": "some scope attribute"
}
}
]
},
"spans": []
}
]
}
]
};

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions