diff --git a/hearth/sig/lib/hearth/telemetry.rbs b/hearth/sig/lib/hearth/telemetry.rbs index 0dd4c7500..5f4fa5001 100644 --- a/hearth/sig/lib/hearth/telemetry.rbs +++ b/hearth/sig/lib/hearth/telemetry.rbs @@ -1,21 +1,5 @@ module Hearth module Telemetry - class TelemetryProvider - def initialize: (?tracer_provider: _TracerProvider, ?context_manager: _ContextManager) -> void - - attr_reader tracer_provider: _TracerProvider - - attr_reader context_manager: _ContextManager - end - - class OTelProvider < TelemetryProvider - def initialize: () -> void - end - - class OTelContextManager - include _ContextManager - end - interface _TracerProvider def tracer: (?String name) -> _Tracer end diff --git a/hearth/sig/lib/hearth/telemetry/otel.rbs b/hearth/sig/lib/hearth/telemetry/otel.rbs new file mode 100644 index 000000000..e9935c9b0 --- /dev/null +++ b/hearth/sig/lib/hearth/telemetry/otel.rbs @@ -0,0 +1,11 @@ +module Hearth + module Telemetry + class OTelProvider < TelemetryProvider + def initialize: () -> void + end + + class OTelContextManager + include _ContextManager + end + end +end diff --git a/hearth/sig/lib/hearth/telemetry/telemetry_provider.rbs b/hearth/sig/lib/hearth/telemetry/telemetry_provider.rbs new file mode 100644 index 000000000..e1a5e12e9 --- /dev/null +++ b/hearth/sig/lib/hearth/telemetry/telemetry_provider.rbs @@ -0,0 +1,11 @@ +module Hearth + module Telemetry + class TelemetryProvider + def initialize: (?tracer_provider: _TracerProvider, ?context_manager: _ContextManager) -> void + + attr_reader tracer_provider: _TracerProvider + + attr_reader context_manager: _ContextManager + end + end +end