-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
118 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
sig/datadog/tracing/contrib/active_support/cache/event.rbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Datadog | ||
module Tracing | ||
module Contrib | ||
module ActiveSupport | ||
module Cache | ||
module Event | ||
def self.included: (untyped base) -> untyped | ||
module ClassMethods | ||
def span_options: () -> ::Hash[untyped, untyped] | ||
|
||
def configuration: () -> untyped | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
19 changes: 19 additions & 0 deletions
19
sig/datadog/tracing/contrib/active_support/cache/events.rbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Datadog | ||
module Tracing | ||
module Contrib | ||
module ActiveSupport | ||
module Cache | ||
module Events | ||
ALL: ::Array[untyped] | ||
|
||
def self?.all: () -> untyped | ||
|
||
def self?.subscriptions: () -> untyped | ||
|
||
def self?.subscribe!: () -> untyped | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
32 changes: 32 additions & 0 deletions
32
sig/datadog/tracing/contrib/active_support/cache/events/cache.rbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module Datadog | ||
module Tracing | ||
module Contrib | ||
module ActiveSupport | ||
module Cache | ||
module Events | ||
module Cache | ||
@cache_backend: untyped | ||
|
||
include ActiveSupport::Cache::Event | ||
def self?.subscribe!: () -> untyped | ||
|
||
def self?.event_name: () -> ::Regexp | ||
|
||
def self?.span_name: () -> untyped | ||
|
||
def self?.span_options: () -> { type: untyped } | ||
MAPPING: ::Hash[::String, { resource: untyped } | { resource: untyped, multi_key: true }] | ||
|
||
def self?.trace?: (untyped event, untyped _payload) -> (false | untyped) | ||
|
||
def self?.on_start: (untyped span, untyped event, untyped _id, untyped payload) -> untyped | ||
|
||
def self?.set_cache_key: (untyped span, untyped key, untyped multi_key) -> untyped | ||
def self?.cache_backend: (untyped store) -> untyped | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters