-
Notifications
You must be signed in to change notification settings - Fork 375
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
4 changed files
with
38 additions
and
18 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
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,35 @@ | ||
module Datadog | ||
module AppSec | ||
class Scope | ||
attr_reader trace: Datadog::Tracing::TraceOperation | ||
|
||
attr_reader service_entry_span: Datadog::Tracing::SpanOperation | ||
|
||
attr_reader processor_context: Datadog::AppSec::Processor::Context | ||
|
||
def initialize: (Datadog::Tracing::TraceOperation trace, Datadog::Tracing::SpanOperation service_entry_span, Datadog::AppSec::Processor::Context processor_context) -> void | ||
|
||
def finalize: () -> void | ||
|
||
def self.activate_scope: (Datadog::Tracing::TraceOperation trace, Datadog::Tracing::SpanOperation service_entry_span, Datadog::AppSec::Processor processor) -> Scope | ||
|
||
def self.deactivate_scope: () -> void | ||
|
||
def self.active_scope: () -> Scope | ||
|
||
private | ||
|
||
def self.active_scope=: (Scope scope) -> Scope | ||
|
||
def self.reset_active_scope: () -> void | ||
|
||
public | ||
|
||
class InactiveScopeError < StandardError | ||
end | ||
|
||
class ActiveScopeError < StandardError | ||
end | ||
end | ||
end | ||
end |