Skip to content

Commit 8e0e951

Browse files
committed
relax to substring match
1 parent 52a6183 commit 8e0e951

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/java_buildpack/framework/splunk_otel_java_agent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def supports?
5151
@application.services.one_service? REQUIRED_SERVICE_NAME_FILTER
5252
end
5353

54-
REQUIRED_SERVICE_NAME_FILTER = /^splunk-o11y$/.freeze
54+
REQUIRED_SERVICE_NAME_FILTER = /splunk-o11y/.freeze
5555

5656
end
5757
end

spec/java_buildpack/framework/splunk_otel_java_agent_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
context 'when detected' do
3434

3535
before do
36-
allow(services).to receive(:one_service?).with(/^splunk-o11y$/).and_return(true)
36+
allow(services).to receive(:one_service?).with(/splunk-o11y/).and_return(true)
3737
end
3838

3939
it 'detects with splunk-otel-java' do

0 commit comments

Comments
 (0)