Skip to content

Commit

Permalink
Update RBS signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Strech committed Jan 13, 2025
1 parent b64c405 commit 7d8c852
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 47 deletions.
14 changes: 7 additions & 7 deletions sig/datadog/appsec/event.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ module Datadog
MAX_ENCODED_SCHEMA_SIZE: Numeric
MIN_SCHEMA_SIZE_FOR_COMPRESSION: Numeric

def self.record: (Datadog::Tracing::SpanOperation, *untyped events) -> (nil | untyped)
def self.record: (Tracing::SpanOperation, *untyped events) -> (nil | untyped)

def self.record_via_span: (Datadog::Tracing::SpanOperation, *untyped events) -> untyped
def self.record_via_span: (Tracing::SpanOperation, *untyped events) -> untyped

def self.build_service_entry_tags: (Array[Hash[::Symbol, untyped]] event_group) -> Hash[::String, untyped]
def self.tag_and_keep!: (Datadog::AppSec::Scope scope, Datadog::AppSec::WAF::Result waf_result) -> void

def self.tag_and_keep!: (Context scope, WAF::Result waf_result) -> void

private

def self.compressed_and_base64_encoded: (untyped value) -> untyped

def self.json_parse: (untyped value) -> untyped

def self.gzip: (untyped value) -> untyped
def self.add_distributed_tags: (Datadog::Tracing::TraceOperation trace) -> void

def self.add_distributed_tags: (Tracing::TraceOperation trace) -> void
end
end
end
12 changes: 7 additions & 5 deletions sig/datadog/appsec/ext.rbs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
module Datadog
module AppSec
module Ext
INTERRUPT: Symbol
SCOPE_KEY: String
RASP_SQLI: ::Symbol
INTERRUPT: ::Symbol
CONTEXT_KEY: ::String
ACTIVE_CONTEXT_KEY: ::Symbol

TAG_APPSEC_ENABLED: String
TAG_APM_ENABLED: String
TAG_DISTRIBUTED_APPSEC_EVENT: String
TAG_APPSEC_ENABLED: ::String
TAG_APM_ENABLED: ::String
TAG_DISTRIBUTED_APPSEC_EVENT: ::String
end
end
end
35 changes: 0 additions & 35 deletions sig/datadog/appsec/scope.rbs

This file was deleted.

0 comments on commit 7d8c852

Please sign in to comment.