Skip to content

Commit 253fa50

Browse files
authored
minor fix: api.propagator => api.propagation (#863)
1 parent 7b37161 commit 253fa50

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/opentelemetry-api/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ tracerProvider.addSpanProcessor(
5656
)
5757
);
5858

59-
/**
59+
/**
6060
* Registering the provider with the API allows it to be discovered
6161
* and used by instrumentation libraries. The OpenTelemetry API provides
6262
* methods to set global SDK implementations, but the default SDK provides
6363
* a convenience method named `register` which registers sane defaults
6464
* for you.
65-
*
65+
*
6666
* By default the NodeTracerProvider uses Trace Context for propagation
6767
* and AsyncHooksScopeManager for context management. To learn about
6868
* customizing this behavior, see API Registration Options below.
@@ -84,7 +84,7 @@ const meterProvider = new MeterProvider({
8484
interval: 1000,
8585
});
8686

87-
/**
87+
/**
8888
* Registering the provider with the API allows it to be discovered
8989
* and used by instrumentation libraries.
9090
*/
@@ -135,7 +135,7 @@ api.metrics.getMeterProvider();
135135
api.metrics.getMeter(name, version);
136136

137137
/* Initialize Propagator */
138-
api.propagator.setGlobalPropagator(httpTraceContextPropagator)
138+
api.propagation.setGlobalPropagator(httpTraceContextPropagator)
139139

140140
/* Initialize Context Manager */
141141
api.context.setGlobalContextManager(asyncHooksContextManager);

0 commit comments

Comments
 (0)