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

[exporter/elasticsearch] Resource and scope schema URL are missing from otel-mode documents #38045

Closed
axw opened this issue Feb 19, 2025 · 2 comments · Fixed by #38046
Closed
Labels
bug Something isn't working exporter/elasticsearch

Comments

@axw
Copy link
Contributor

axw commented Feb 19, 2025

Component(s)

exporter/elasticsearch

What happened?

Description

Resource and scope schema URLs are no longer included in metric documents when using otel mapping mode.
This appears to be a regression introduced in #37509

Steps to Reproduce

  1. Configure the Elasticsearch exporter with mapping::mode: otel
  2. Send some metrics that have a resource and scope schema URL

Expected Result

The resultant Elasticsearch metric documents should have fields resource.schema_url and scope.schema_url.

Actual Result

There are no *.schema_url fields in the metric documents.

Collector version

v0.120.0

Environment information

Environment

OS: Ubuntu 24.04
Compiler: go 1.24.0

OpenTelemetry Collector configuration

Log output

Additional context

No response

@axw axw added bug Something isn't working needs triage New item requiring triage labels Feb 19, 2025
Copy link
Contributor

Pinging code owners:

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

@carsonip
Copy link
Contributor

/label -needs-triage

@github-actions github-actions bot removed the needs triage New item requiring triage label Feb 19, 2025
andrzej-stencel pushed a commit that referenced this issue Feb 20, 2025
#### Description

Fix grouping of metrics so schema URL is included in documents.

#### Link to tracking issue

Fixes
#38045

#### Testing

Added a unit test covering schema URL in otel-mode metric grouping.

#### Documentation

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/elasticsearch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants