Skip to main content
PUT
/
api
/
v1
/
config
/
trace-behaviors
/
{slug}
{
  "trace_behavior": {
    "name": "<string>",
    "base_head_sample_rate": 123,
    "base_tail_sample_rate": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "error_sample_options": {
      "enabled": true,
      "sample_rate": 123,
      "sampling_type": "LOW_VALUE"
    },
    "fast_sample_options": {
      "enabled": true,
      "max_duration_seconds": 123,
      "sample_rate": 123,
      "sampling_type": "LOW_VALUE"
    },
    "large_trace_sample_options": {
      "enabled": true,
      "sample_rate": 123,
      "sampling_type": "LOW_VALUE",
      "span_count_threshold": 123
    },
    "slow_sample_options": {
      "enabled": true,
      "min_duration_seconds": 123,
      "sample_rate": 123,
      "sampling_type": "LOW_VALUE"
    },
    "slug": "<string>",
    "small_trace_sample_options": {
      "enabled": true,
      "sample_rate": 123,
      "sampling_type": "LOW_VALUE",
      "span_count_threshold": 123
    },
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Body

application/json
create_if_missing
boolean

If true, the TraceBehavior will be created if it does not already exist, identified by slug. If false, an error will be returned if the TraceBehavior does not already exist.

dry_run
boolean

If true, validates the specified configuration without creating or updating the TraceBehavior. If the specified configuration is valid, the endpoint returns a partial response without the TraceBehavior. If the specified configuration is invalid, the endpoint returns an error.

trace_behavior
object

The TraceBehavior to update.

Response

A successful response containing the updated TraceBehavior.

trace_behavior
object