-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CoreTracer.builder returns NoOp if java.util.function not found
- Loading branch information
Showing
7 changed files
with
254 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
features/dd-sdk-android-trace/src/main/java/com/datadog/trace/core/CoreTracerBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. | ||
* This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
* Copyright 2016-Present Datadog, Inc. | ||
*/ | ||
|
||
package com.datadog.trace.core; | ||
|
||
import com.datadog.trace.api.Config; | ||
import com.datadog.trace.api.IdGenerationStrategy; | ||
import com.datadog.trace.api.gateway.InstrumentationGateway; | ||
import com.datadog.trace.api.time.TimeSource; | ||
import com.datadog.trace.bootstrap.instrumentation.api.AgentScopeManager; | ||
import com.datadog.trace.bootstrap.instrumentation.api.AgentTracer; | ||
import com.datadog.trace.common.sampling.Sampler; | ||
import com.datadog.trace.common.writer.Writer; | ||
import com.datadog.trace.core.propagation.HttpCodec; | ||
import com.datadog.trace.core.taginterceptor.TagInterceptor; | ||
|
||
import java.util.Map; | ||
import java.util.Properties; | ||
|
||
public interface CoreTracerBuilder { | ||
CoreTracerBuilder serviceName(String serviceName); | ||
|
||
CoreTracerBuilder writer(Writer writer); | ||
|
||
CoreTracerBuilder idGenerationStrategy(IdGenerationStrategy idGenerationStrategy); | ||
|
||
CoreTracerBuilder sampler(Sampler sampler); | ||
|
||
CoreTracerBuilder extractor(HttpCodec.Extractor extractor); | ||
|
||
CoreTracerBuilder scopeManager(AgentScopeManager scopeManager); | ||
|
||
CoreTracerBuilder localRootSpanTags(Map<String, ?> localRootSpanTags); | ||
|
||
CoreTracerBuilder defaultSpanTags(Map<String, ?> defaultSpanTags); | ||
|
||
CoreTracerBuilder serviceNameMappings(Map<String, String> serviceNameMappings); | ||
|
||
CoreTracerBuilder taggedHeaders(Map<String, String> taggedHeaders); | ||
|
||
CoreTracerBuilder baggageMapping(Map<String, String> baggageMapping); | ||
|
||
CoreTracerBuilder partialFlushMinSpans(int partialFlushMinSpans); | ||
|
||
CoreTracerBuilder tagInterceptor(TagInterceptor tagInterceptor); | ||
|
||
CoreTracerBuilder strictTraceWrites(boolean strictTraceWrites); | ||
|
||
CoreTracerBuilder instrumentationGateway(InstrumentationGateway instrumentationGateway); | ||
|
||
CoreTracerBuilder timeSource(TimeSource timeSource); | ||
|
||
CoreTracerBuilder injectBaggageAsTags(boolean injectBaggageAsTags); | ||
|
||
CoreTracerBuilder withProperties(Properties properties); | ||
|
||
CoreTracerBuilder config(Config config); | ||
|
||
AgentTracer.TracerAPI build(); | ||
} |
Oops, something went wrong.