Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Provide an api to configure propagation for spring servlet and client#1924

Merged
rghetia merged 4 commits intocensus-instrumentation:masterfrom
rghetia:spring_parameters
Jun 10, 2019
Merged

Provide an api to configure propagation for spring servlet and client#1924
rghetia merged 4 commits intocensus-instrumentation:masterfrom
rghetia:spring_parameters

Conversation

@rghetia
Copy link
Copy Markdown
Contributor

@rghetia rghetia commented Jun 6, 2019

fixes #1923

@rghetia rghetia requested review from a team, dinooliva and songy23 as code owners June 6, 2019 15:16
this.trace = trace;
}

/** Trace properties. */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: @since 0.23

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

/** Trace properties. */
public static class Trace {

public static final String TRACE_PROPAGATION_TRACE_CONTEXT = "tracecontext";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: consider using Enum? Also public fields/methods need to have Javadoc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

}

/** Trace properties. */
public static class Trace {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this class need to be mutable or would an appropriate constructor/builder be sufficient?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it doesn't need to be mutable. I have made it final. Typically it would used by spring framework. Application code would not use it directly.

@songy23 songy23 added the http label Jun 6, 2019
@rghetia
Copy link
Copy Markdown
Contributor Author

rghetia commented Jun 10, 2019

@songy23 , @dinooliva PTAL.

@rghetia rghetia merged commit ffd8c07 into census-instrumentation:master Jun 10, 2019
@rghetia rghetia deleted the spring_parameters branch June 10, 2019 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support to configure propagation for opencensus-spring

4 participants