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

Test out contrib's httpcheckreceiver with response logging support. #13

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

carlosalberto
Copy link
Contributor

Added a modified contrib's httpcheckreceiver to log responses (which we plan to upstream). Code diff can be seen here: https://github.com/open-telemetry/opentelemetry-collector-contrib/compare/main...carlosalberto:httpcheckreceiver-log-response?expand=1

The responses from the checks can be reported as logs, including response body, duration (nanoseconds), endpoint and status code. httpcheck MUST be enabled for both metrics and logs, e.g.

service:
  pipelines:
    metrics:
      receivers: [otlp, httpcheck]
      processors: [batch]
      exporters: [debug]
    logs:
      receivers: [otlp, httpcheck]
      processors: [batch]
      exporters: [debug]

@smithclay
Copy link
Member

🔥

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.

2 participants