ClassificationIntegration
class ClassificationIntegration extends Feature
| internal |
Constants
| private FEATURE_KEY |
|
| private FEATURE_KEY_EVALUATE |
|
Methods
Determine whether classification tracing is enabled and available.
Register classification lifecycle listeners.
Set up the feature in the environment in an inactive state (when no DSN was set).
Indicate if the given feature is enabled for tracing.
Indicate if the given feature is enabled for breadcrumbs.
Start a classification span under the current sampled scope.
Record classification answers and finish the owned span.
Close the exact failed classification attempt before failover or rethrowing.
Details
at line 30
bool
isApplicable()
Determine whether classification tracing is enabled and available.
in
Feature at line 48
void
register()
Register the feature in the environment.
at line 40
void
onBoot()
Register classification lifecycle listeners.
in
Feature at line 64
void
onBootInactive()
Set up the feature in the environment in an inactive state (when no DSN was set).
in
Feature at line 71
void
boot()
Initialize the feature.
in
Feature at line 81
void
bootInactive()
Initialize the feature in an inactive state (when no DSN was set).
in
Feature at line 91
protected array
getUserConfig()
Retrieve the user configuration.
in
Feature at line 99
protected bool
shouldSendDefaultPii()
Determine if default PII should be sent.
in
Feature at line 113
protected bool
shouldCollectGenAiInputs()
Determine whether AI inputs may be collected.
in
Feature at line 121
protected bool
shouldCollectGenAiOutputs()
Determine whether AI outputs may be collected.
in
Feature at line 146
protected bool
isTracingFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for tracing.
in
Feature at line 159
protected bool
isBreadcrumbFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for breadcrumbs.
in
Feature at line 182
protected bool
canRecordSpans()
Determine if the active SDK client can record spans.
in
Feature at line 196
protected bool
canRecordBreadcrumbs()
Determine if the active SDK client can record breadcrumbs.
at line 61
void
handleClassifyingForTracing(Classifying $event)
Start a classification span under the current sampled scope.
at line 101
void
handleClassifiedForTracing(Classified $event)
Record classification answers and finish the owned span.
at line 125
void
handleClassificationFailedForTracing(ClassificationFailed $event)
Close the exact failed classification attempt before failover or rethrowing.