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

Add support to send LOG and EVENT to OtelCollector as logs #603

Merged
merged 4 commits into from
Aug 15, 2024

Conversation

mkocher
Copy link
Member

@mkocher mkocher commented Aug 14, 2024

Description

This incorporates the changes from #595 to add support for forwarding logs over otlp. It also adds configuration to turn logs/metrics/traces on and off.

⚠️ This change renames temporary_emit_otel_traces ⚠️
We don't believe anyone is using it, and since we were adding the other signals we figure these properties are as permanent as any others.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Testing performed?

  • Unit tests
  • Integration tests
  • Acceptance tests

Checklist:

  • This PR is being made against the main branch, or relevant version branch
  • I have made corresponding changes to the documentation
  • I have added testing for my changes

If you have any questions, or want to get attention for a PR or issue please reach out on the #logging-and-metrics channel in the cloudfoundry slack

jriguera and others added 3 commits August 14, 2024 22:33
…_AS_OTEL_LOGS`) to send loggregator events to OTL logs service
- we tested the shorter timeout for the eventually, fails at 0.1, passes
  at 0.2, so going with 0.5 as the timeout.
- not adding temporary_ before the bosh properties. Seems like this
  pattern is going to live for a while.
- decided to use one property for logs and events, since logs and events
  both get translated to otlp logs.

Signed-off-by: Andrew Costa <andrew.costa@broadcom.com>
Signed-off-by: Matthew Kocher <matthew.kocher@broadcom.com>
Signed-off-by: Ivan Protsiuk <ivan.protsiuk@broadcom.com>
- Renaming this without a major version as it was prefixed with
  temporary. We don't think anyone is using this, apologies if you are
  and this breaks your environment.

Signed-off-by: Ivan Protsiuk <ivan.protsiuk@broadcom.com>
@mkocher mkocher requested a review from a team as a code owner August 14, 2024 22:39
ctlong
ctlong previously approved these changes Aug 14, 2024
- new linter release, new problems

Signed-off-by: Matthew Kocher <matthew.kocher@broadcom.com>
@mkocher mkocher merged commit 4ca9716 into main Aug 15, 2024
6 checks passed
@mkocher mkocher deleted the add-otel-logs-flag branch August 15, 2024 17:41
@mkocher
Copy link
Member Author

mkocher commented Aug 29, 2024

In cloudfoundry/otel-collector-release#48 we made the otel-collector release add noop pipelines for any signal that doesn't have a pipeline defined. This should make it safe to turn these properties on by default, and allow users to turn them off as a (probably minor) performance optimization if they want to.

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.

6 participants