Skip to content

Commit 0ed24cd

Browse files
authored
[PHP] Replace deprecated constants DEPLOYMENT_ENVIRONMENT to DEPLOYMENT_ENVIRONMENT_NAME (#6377)
1 parent 6124bc4 commit 0ed24cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/en/docs/languages/php/instrumentation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ $resource = ResourceInfoFactory::emptyResource()->merge(ResourceInfo::create(Att
186186
ResourceAttributes::SERVICE_NAMESPACE => 'demo',
187187
ResourceAttributes::SERVICE_NAME => 'test-application',
188188
ResourceAttributes::SERVICE_VERSION => '0.1',
189-
ResourceAttributes::DEPLOYMENT_ENVIRONMENT => 'development',
189+
ResourceAttributes::DEPLOYMENT_ENVIRONMENT_NAME => 'development',
190190
])));
191191
$spanExporter = new SpanExporter(
192192
(new StreamTransportFactory())->create('php://stdout', 'application/json')

content/en/docs/languages/php/resources.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ $resource = ResourceInfoFactory::defaultResource()->merge(ResourceInfo::create(A
8080
ResourceAttributes::SERVICE_NAME => 'bar',
8181
ResourceAttributes::SERVICE_INSTANCE_ID => 1,
8282
ResourceAttributes::SERVICE_VERSION => '0.1',
83-
ResourceAttributes::DEPLOYMENT_ENVIRONMENT => 'development',
83+
ResourceAttributes::DEPLOYMENT_ENVIRONMENT_NAME => 'development',
8484
])));
8585

8686
$tracerProvider = new TracerProvider(

0 commit comments

Comments
 (0)