Skip to content

Conversation

@solnic
Copy link
Collaborator

@solnic solnic commented Jun 12, 2025

This adds basic integration tests for opentelemetry integration to the sample integration test phoenix app.

⚠️ Waiting for #910 to be merged first

#skip-changelog

@solnic solnic force-pushed the span-processor-integration-tests branch 3 times, most recently from 1076991 to eb3a040 Compare June 16, 2025 13:14
@solnic solnic marked this pull request as ready for review June 16, 2025 13:29
@solnic solnic force-pushed the traces-sampler-support branch from 38df5df to 36a6b4d Compare June 17, 2025 07:41
Base automatically changed from traces-sampler-support to span-processor-with-new-sampler June 17, 2025 07:49
@solnic solnic force-pushed the span-processor-integration-tests branch from b9f1407 to a3f0110 Compare June 17, 2025 07:53
@solnic solnic requested a review from sl0thentr0py June 17, 2025 07:54
@solnic solnic merged commit ff7eccc into span-processor-with-new-sampler Jun 17, 2025
9 checks passed
@solnic solnic deleted the span-processor-integration-tests branch June 17, 2025 10:53
solnic added a commit that referenced this pull request Jun 17, 2025
* Revert "Revert "Add SpanProcessor for OpenTelemetry (#875)""

This reverts commit 2ced90e.

* Better span sampler (#903)

* Better span sampler

This updates OpenTelemetry.Sampler so that it uses
`traces_sample_rate` for sampling spans before they
get sent to the span processor.

This way we're not processing spans when they are
dropped during sampling, which was previously the
case as the Client was responsible for sampling
just before attemping to send a transaction.

* Enhance sampling logic to record discarded transactions

* Clarify trace-level sampling decision-making

Previously it incorrectly referred to "parent" where
in reality we're dealing with spans from the same
trace and respect sampling decisions that were
already made for a given trace.

This is not the same thing as parent/child spans
that we're handling in the SpanProcessor as this
type of relationship is established post-sampling.

* Remove unnecessary sleep calls in sampler tests

* Fix flaky test

* Clean up make_sampling_decision

* Simplify client reports for dropped transactions

* Update traces_sample_rate default value to be nil

* Account for `nil` sample_rate when sampling

* Use put_test_config

* Update traces_sample_rate spec to allow nil value

* Support for traces_sampler option (#910)

* Add support for `traces_sampler` config option

* Update docs

* Remove unnecessary attribute merging

* Call traces_sampler only for root spans

* Reuse sampling decision logic

* Add test for handling invalid traces_sampler return values

* Add tests for SamplingContext access functions

* Add basic integration tests for OpenTelemetry (#912)

* Update CHANGELOG
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.

3 participants