From 3b9299431e0ee4b04db113ecc17f5b4383f709dd Mon Sep 17 00:00:00 2001 From: jonathancampbell-wk Date: Thu, 15 Aug 2024 10:21:43 -0400 Subject: [PATCH] Make registerGlobalContextManager public API --- example/noop_context_manager.dart | 3 +-- example/w3c_context_propagation.dart | 3 +-- example/zone_context_manager.dart | 2 +- lib/api.dart | 5 ++++- lib/src/experimental_api.dart | 3 +-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/example/noop_context_manager.dart b/example/noop_context_manager.dart index ef0b9580..a14e07b2 100644 --- a/example/noop_context_manager.dart +++ b/example/noop_context_manager.dart @@ -1,8 +1,7 @@ import 'package:opentelemetry/api.dart'; import 'package:opentelemetry/sdk.dart' show ConsoleExporter, SimpleSpanProcessor, TracerProviderBase; -import 'package:opentelemetry/src/experimental_api.dart' - show NoopContextManager, registerGlobalContextManager; +import 'package:opentelemetry/src/experimental_api.dart' show NoopContextManager; void main(List args) async { final tp = diff --git a/example/w3c_context_propagation.dart b/example/w3c_context_propagation.dart index 7861f0b4..79e1cc5a 100644 --- a/example/w3c_context_propagation.dart +++ b/example/w3c_context_propagation.dart @@ -1,8 +1,7 @@ import 'package:opentelemetry/api.dart'; import 'package:opentelemetry/sdk.dart' show ConsoleExporter, SimpleSpanProcessor, TracerProviderBase; -import 'package:opentelemetry/src/experimental_api.dart' - show NoopContextManager, registerGlobalContextManager; +import 'package:opentelemetry/src/experimental_api.dart' show NoopContextManager; class MapSetter implements TextMapSetter { @override diff --git a/example/zone_context_manager.dart b/example/zone_context_manager.dart index 317233f5..ee889d48 100644 --- a/example/zone_context_manager.dart +++ b/example/zone_context_manager.dart @@ -4,7 +4,7 @@ import 'package:opentelemetry/api.dart'; import 'package:opentelemetry/sdk.dart' show ConsoleExporter, SimpleSpanProcessor, TracerProviderBase; import 'package:opentelemetry/src/experimental_api.dart' - show registerGlobalContextManager, ZoneContext, ZoneContextManager; + show ZoneContext, ZoneContextManager; void main(List args) async { final tp = diff --git a/lib/api.dart b/lib/api.dart index 4b4120c0..4d378def 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -12,7 +12,10 @@ export 'src/api/context/context.dart' contextWithSpanContext, spanContextFromContext, spanFromContext; -export 'src/api/context/context_manager.dart' show globalContextManager; +export 'src/api/context/context_manager.dart' + show + globalContextManager, + registerGlobalContextManager; export 'src/api/exporters/span_exporter.dart' show SpanExporter; export 'src/api/instrumentation_library.dart' show InstrumentationLibrary; export 'src/api/open_telemetry.dart' diff --git a/lib/src/experimental_api.dart b/lib/src/experimental_api.dart index dbf43e88..b21932cf 100644 --- a/lib/src/experimental_api.dart +++ b/lib/src/experimental_api.dart @@ -6,8 +6,7 @@ library experimental_api; import 'package:meta/meta.dart'; -export 'api/context/context_manager.dart' - show ContextManager, registerGlobalContextManager; +export 'api/context/context_manager.dart' show ContextManager; export 'api/context/noop_context_manager.dart' show NoopContextManager; export 'api/context/zone_context.dart' show ZoneContext; export 'api/context/zone_context_manager.dart' show ZoneContextManager;