Skip to content

Adds TracingCustomizer and HttpTracingCustomizer#978

Merged
codefromthecrypt merged 4 commits intomasterfrom
customizer
Aug 30, 2019
Merged

Adds TracingCustomizer and HttpTracingCustomizer#978
codefromthecrypt merged 4 commits intomasterfrom
customizer

Conversation

@codefromthecrypt
Copy link
Member

Fixes #973

/**
* This allows configuration plugins to collaborate on building an instance of {@link Tracing}.
*
* <p>Notably, this decouples framework-level configuration (such as {@link
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not so obvious how these decouple the configuration. Maybe this can be used to decouple blah and blah by having each layer create its own customizer and applying them all to construct the final Tracing

Copy link
Member Author

Choose a reason for hiding this comment

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

sgtm!

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I might add a code example, as I'm struggling with words that don't also repeat the first sentence. Thanks for helping me think through this.

Copy link
Member Author

Choose a reason for hiding this comment

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

I changed the wording instead. lemme know if this works.

@codefromthecrypt
Copy link
Member Author

I forgot to implement this in spring-beans also..

@codefromthecrypt
Copy link
Member Author

I added spring integration and tests.

Copy link
Member

@jeqo jeqo left a comment

Choose a reason for hiding this comment

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

LGTM

@codefromthecrypt codefromthecrypt merged commit 518b343 into master Aug 30, 2019
@codefromthecrypt codefromthecrypt deleted the customizer branch August 30, 2019 00:14
@codefromthecrypt
Copy link
Member Author

PS I think will need to follow up with an ExtraFieldsCustomizer for the same reason cc @marcingrzejszczak

For example, one should be able to assign additional extra fields without changing the underlying default propagation mechanism

codefromthecrypt pushed a commit that referenced this pull request Aug 30, 2019
This will allow you to change field setup without accidentally
overriding the trace propagation format.

Like #978, except for extra fields. I realize this dramatically
simplifies our spring 2.5 variant of brave-webmvc-example along the way.
@codefromthecrypt
Copy link
Member Author

#981 for extra fields

@codefromthecrypt
Copy link
Member Author

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.

add TracingCustomizer, HttpTracingCustomizer, and in future MessagingTracingCustomizer

4 participants