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

Support node attributes in Honeycomb exporter #154

Merged
merged 3 commits into from
Mar 31, 2020

Conversation

subnova-etsy
Copy link
Contributor

Description:
Adds support for adding Node attributes to spans sent to Honeycomb if the span is either the root span of the trace or has a remote parent (which means that the node information is likely to be different from the previous span in the trace).

Testing:

Added a test case for the Honeycomb exporter that uses a mock HttpServer to grab the output being sent to Honeycomb - this is several levels of abstraction from the code under test (the otel collector exporter calls the otel go exporter which calls libhoney to actually send the data) but could not identify a better way given the interface provided.

The test case has both a root span and a span with a remote parent which is unrealistic within a single call to the exporter but demonstrates that the attributes are included in both scenarios whilst the intermediate span show that the attributes are not added to every span in the trace.

@pjanotti
Copy link
Contributor

@paulosman @lizthegrey could you ptal?

Copy link
Member

@paulosman paulosman left a comment

Choose a reason for hiding this comment

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

👍

@paulosman
Copy link
Member

@paulosman @lizthegrey could you ptal?

LGTM.

exporter/honeycombexporter/honeycomb_test.go Outdated Show resolved Hide resolved
@pjanotti
Copy link
Contributor

@subnova-etsy could you please rebase it?

@pjanotti pjanotti merged commit 8ede6c6 into open-telemetry:master Mar 31, 2020
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
* add batch span processor.

* add blocking support.

* use With* function for options.
- also changed how Shutdown is handled.

* block Shutdown until queue is flushed.

* fix comment.
bogdandrutu pushed a commit that referenced this pull request May 12, 2022
* Add gosec workflow

* Update changelog

* Update CHANGELOG.md

Co-authored-by: Daniel Jaglowski <[email protected]>

* Add trigger on PR

* test

Co-authored-by: Daniel Jaglowski <[email protected]>
bjrara pushed a commit to bjrara/opentelemetry-collector-contrib that referenced this pull request Apr 3, 2024
… commits (open-telemetry#168)

Add support for Container Insights on Windows for EKS  

* Add kubelet summary API for Windows (open-telemetry#142)
* CPU extractors with unit tests (open-telemetry#146)
* Add memory extractors for pod and node level (open-telemetry#147)
* Define structs for CPU and Memory stats (open-telemetry#149)
* Add Container level metrics for CPU and memory resources. (open-telemetry#150)
* Add storage metrics for container and node level (open-telemetry#151)
* Add network metrics (open-telemetry#152)
* Enable awscontainerinsights receiver to run inside Host Process container (open-telemetry#153)
* Add HCS shim api as alternative source for metric provider (open-telemetry#154)
* Add check for host process container before reading from hcshim (open-telemetry#156)
* Fix CPU utilization percentage for Windows nodes (open-telemetry#161)
* Add List of Metrics for Windows + Design (open-telemetry#166)
* fix fstype (open-telemetry#164)
bjrara pushed a commit to bjrara/opentelemetry-collector-contrib that referenced this pull request Apr 3, 2024
* Add kubelet summary API for Windows (open-telemetry#142)
* CPU extractors with unit tests (open-telemetry#146)
* Add memory extractors for pod and node level (open-telemetry#147)
* Define structs for CPU and Memory stats (open-telemetry#149)
* Add Container level metrics for CPU and memory resources. (open-telemetry#150)
* Add storage metrics for container and node level (open-telemetry#151)
* Add network metrics (open-telemetry#152)
* Enable awscontainerinsights receiver to run inside Host Process container (open-telemetry#153)
* Add HCS shim api as alternative source for metric provider (open-telemetry#154)
* Add check for host process container before reading from hcshim (open-telemetry#156)
* Fix CPU utilization percentage for Windows nodes (open-telemetry#161)
* Add List of Metrics for Windows + Design (open-telemetry#166)
* fix fstype (open-telemetry#164)
* Add windows build tag to fix building cw agent on Windows
* Downgrade internal/aws/containerinsight from 0.92 0.89
* Separate unit tests in util.go specific for Windows
* Fix util unit tests applicable for Windows
* Fix goporto issue
* Fix lint issue
* Fix regression in unit tests caused due to rebasing mainline
* Add unit tests for k8s Windows
* Add unit test for kubelet client on Windows
* Run DCGM scrapper only for CW agent on Linux
* Separate out node Volume unit tests for Windows
* Add changelog for Container Insights on Windows
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.

4 participants