Skip to content

fix(logging): enable operation special field mapping in OTel and rest…#2374

Merged
rafaelwestphal merged 2 commits into
ops_agent_3.0from
westphalrafael/remove-operation-workarounds-3.0
Jul 8, 2026
Merged

fix(logging): enable operation special field mapping in OTel and rest…#2374
rafaelwestphal merged 2 commits into
ops_agent_3.0from
westphalrafael/remove-operation-workarounds-3.0

Conversation

@rafaelwestphal

Copy link
Copy Markdown
Contributor

Description

With b/517603597 fixed in production (mapping OTLP gcp.operation attribute to LogEntry.operation during ingestion), this PR:

  • Re-enables the operation field mapping in OTel logging configuration translation (logEntryRootStructMapToOTel).
  • Restores operation and sourceLocation.function assertions in TestLogEntrySpecialFields.
  • Updates golden configuration test files and test cases accordingly.

Related issue

How has this been tested?

Checklist:

  • Unit tests
    • Unit tests do not apply.
    • Unit tests have been added/modified and passed for this PR.
  • Integration tests
    • Integration tests do not apply.
    • Integration tests have been added/modified and passed for this PR.
  • Documentation
    • This PR introduces no user visible changes.
    • This PR introduces user visible changes and the corresponding documentation change has been made.
  • Minor version bump
    • This PR introduces no new features.
    • This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
    • This PR bumps the version.

…ore test checks

With b/517603597 fixed in production (mapping OTLP gcp.operation attribute to LogEntry.operation during ingestion), this change:
- Re-enables the operation field mapping in OTel logging configuration translation (logEntryRootStructMapToOTel).
- Restores operation and sourceLocation.function assertions in TestLogEntrySpecialFields.
- Updates golden configuration test files and test cases accordingly.
…ecialFields

Only b/517603597 (operation special field mapping in OTLP ingestion) has been fixed and deployed to production. The issue with sourceLocation.function (tracked under b/517603547) remains open due to an attribute naming mismatch between confgenerator (which renames function to func) and opentelemetry-operations-go (which expects json:"function").

This commit restores the workaround for sourceLocation.function while keeping the newly enabled operation assertions intact.
@rafaelwestphal rafaelwestphal merged commit 387aeeb into ops_agent_3.0 Jul 8, 2026
70 of 74 checks passed
@rafaelwestphal rafaelwestphal deleted the westphalrafael/remove-operation-workarounds-3.0 branch July 8, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant