Skip to content

Commit

Permalink
Merge pull request #183 from Workiva/jcampbell/remove_experimental_api
Browse files Browse the repository at this point in the history
Make registerGlobalContextManager public API
  • Loading branch information
rmconsole4-wk authored Aug 15, 2024
2 parents 7540964 + 3b92994 commit 2d38bc3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions example/noop_context_manager.dart
Original file line number Diff line number Diff line change
@@ -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<String> args) async {
final tp =
Expand Down
3 changes: 1 addition & 2 deletions example/w3c_context_propagation.dart
Original file line number Diff line number Diff line change
@@ -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<Map> {
@override
Expand Down
2 changes: 1 addition & 1 deletion example/zone_context_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> args) async {
final tp =
Expand Down
5 changes: 4 additions & 1 deletion lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 1 addition & 2 deletions lib/src/experimental_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d38bc3

Please sign in to comment.