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

[chore][exporter/elasticsearch] Refactor passthrough field handling for OTel mode #34471

Merged

Conversation

carsonip
Copy link
Contributor

@carsonip carsonip commented Aug 7, 2024

Description:

  • Add otel mapping mode logs test
  • Add note and remove confusing test

There is no change in behavior. No changelog needed.

Link to tracking Issue:

Testing:
Added exporter test

Documentation:

@carsonip carsonip requested review from a team and andrzej-stencel August 7, 2024 14:23
@carsonip carsonip changed the title [chore][exporter/elasticsearch] Add note about passthrough field handling for OTel mode [chore][exporter/elasticsearch] Refactor passthrough field handling for OTel mode Aug 7, 2024
Copy link
Member

@lahsivjar lahsivjar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +305 to +306
"data_stream.dataset": "resource.attribute.dataset",
"data_stream.namespace": "resource.attribute.namespace",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as a question: have we implemented sanitization for these already? For example, would resource-attribute-dataset be sanitized to resource_attribute_dataset?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, we have not. Will address in a different PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrzej-stencel andrzej-stencel merged commit 2dc2138 into open-telemetry:main Aug 12, 2024
154 checks passed
@github-actions github-actions bot added this to the next release milestone Aug 12, 2024
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this pull request Sep 12, 2024
…or OTel mode (open-telemetry#34471)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
- **Add otel mapping mode logs test**
- **Add note and remove confusing test**

There is no change in behavior. No changelog needed.

**Link to tracking Issue:** <Issue number if applicable>

**Testing:** <Describe what testing was performed and which tests were
added.>
Added exporter test

**Documentation:** <Describe the documentation added.>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants