Skip to content

Commit

Permalink
Update RBS signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
jterapin committed Jul 29, 2024
1 parent d3dee6a commit 3558787
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
16 changes: 0 additions & 16 deletions hearth/sig/lib/hearth/telemetry.rbs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 11 additions & 0 deletions hearth/sig/lib/hearth/telemetry/otel.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Hearth
module Telemetry
class OTelProvider < TelemetryProvider
def initialize: () -> void
end

class OTelContextManager
include _ContextManager
end
end
end
11 changes: 11 additions & 0 deletions hearth/sig/lib/hearth/telemetry/telemetry_provider.rbs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3558787

Please sign in to comment.