8000 Service naming: split by jee deployment by amarziali · Pull Request #8064 · DataDog/dd-trace-java · GitHub
[go: up one dir, main page]

Skip to content

Service naming: split by jee deployment #8064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Dec 12, 2024
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
amarziali committed Dec 12, 2024
commit fe24e628e36e874a64318a67b39728e50e807c6e
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class TagInterceptorTest extends DDCoreSpecification {
.sampler(new AllSampler())
// equivalent to split-by-tags: tag
.tagInterceptor(new TagInterceptor(true, "my-service",
Collections.singleton(tag), new RuleFlags()))
Collections.singleton(tag), new RuleFlags(), false))
.build()
}

Expand Down Expand Up @@ -700,7 +700,7 @@ class TagInterceptorTest extends DDCoreSpecification {
ServiceNameCollector.INSTANCE = extraServiceProvider
final ruleFlags = Mock(RuleFlags)
ruleFlags.isEnabled(_) >> true
final interceptor = new TagInterceptor(true, "my-service", Collections.singleton(DDTags.SERVICE_NAME), ruleFlags)
final interceptor = new TagInterceptor(true, "my-service", Collections.singleton(DDTags.SERVICE_NAME), ruleFlags, false)

when:
interceptor.interceptServiceName(null, Mock(DDSpanContext), "some-service")
Expand All @@ -715,7 +715,7 @@ class TagInterceptorTest extends DDCoreSpecification {
ServiceNameCollector.INSTANCE = extraServiceProvider
final ruleFlags = Mock(RuleFlags)
ruleFlags.isEnabled(_) >> true
final interceptor = new TagInterceptor(true, "my-service", Collections.singleton("servlet.context"), ruleFlags)
final interceptor = new TagInterceptor(true, "my-service", Collections.singleton("servlet.context"), ruleFlags, false)

when:
interceptor.interceptServletContext(Mock(DDSpanContext), value)
Expand Down
0