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

agents: implement SpanCollector helper class #160

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

santigimeno
Copy link
Member

@santigimeno santigimeno commented Aug 2, 2024

SpanCollector is a class that allows to start collecting spans and
report them to a callback function running in a specific uv_loop_t
thread. The collector can be configured with a minimum span count and a
time interval to report the spans. In addition, the collector can be
configured with a transform function that will be applied to the spans
before calling the final callback.
Use this class to dry the code in the ZmqAgent and OTLPAgent.

@santigimeno santigimeno self-assigned this Aug 2, 2024
@santigimeno santigimeno force-pushed the santi/tracing_collector branch 2 times, most recently from 608907a to cc59147 Compare August 7, 2024 15:13
Copy link
Member

@trevnorris trevnorris left a comment

Choose a reason for hiding this comment

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

I like the change. Just one non-blocking nit for indentation.

agents/src/span_collector.cc Outdated Show resolved Hide resolved
SpanCollector is a class that allows to start collecting spans and
report them to a callback function running in a specific uv_loop_t
thread. The collector can be configured with a minimum span count and a
time interval to report the spans. In addition, the collector can be
configured with a transform function that will be applied to the spans
before calling the final callback.
Use this class to dry the code in the `ZmqAgent` and `OTLPAgent`.

PR-URL: #160
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@santigimeno santigimeno merged commit 3ea993c into node-v20.x-nsolid-v5.x Aug 8, 2024
16 of 19 checks passed
@santigimeno santigimeno deleted the santi/tracing_collector branch August 8, 2024 14:21
trevnorris pushed a commit that referenced this pull request Aug 21, 2024
SpanCollector is a class that allows to start collecting spans and
report them to a callback function running in a specific uv_loop_t
thread. The collector can be configured with a minimum span count and a
time interval to report the spans. In addition, the collector can be
configured with a transform function that will be applied to the spans
before calling the final callback.
Use this class to dry the code in the `ZmqAgent` and `OTLPAgent`.

PR-URL: #160
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
trevnorris pushed a commit that referenced this pull request Aug 23, 2024
SpanCollector is a class that allows to start collecting spans and
report them to a callback function running in a specific uv_loop_t
thread. The collector can be configured with a minimum span count and a
time interval to report the spans. In addition, the collector can be
configured with a transform function that will be applied to the spans
before calling the final callback.
Use this class to dry the code in the `ZmqAgent` and `OTLPAgent`.

PR-URL: #160
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
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