Skip to content

Commit

Permalink
Make private static fields final (#256)
Browse files Browse the repository at this point in the history
* Update to static final fields

Also fixes a typo

* Change logger name to fully qualified name
  • Loading branch information
psx95 authored Jun 16, 2023
1 parent b391c4a commit e889bb1
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@
*/
public final class XCloudTraceContextPropagator implements TextMapPropagator {

private static String FIELD = "x-cloud-trace-context";
private static Collection<String> FIELDS = Collections.singletonList(FIELD);
private static Pattern VALUE_PATTERN =
private static final String FIELD = "x-cloud-trace-context";
private static final Collection<String> FIELDS = Collections.singletonList(FIELD);
private static final Pattern VALUE_PATTERN =
Pattern.compile("(?<traceid>[0-9a-f]{32})\\/(?<spanid>[\\d]{1,20});o=(?<sampled>\\d+)");
private static Logger LOGGER = Logger.getLogger("XCloudTraceContextPropogator");
private static final Logger LOGGER =
Logger.getLogger(XCloudTraceContextPropagator.class.getCanonicalName());

private final boolean oneway;

Expand Down

0 comments on commit e889bb1

Please sign in to comment.