Update Span Sampling Policy

Update Span Sampling Policy

Update a specific span sampling policy

Request
URI
PUT
https://{api_host}/api/v2/spansamplingpolicy/{id}
COPY
Path Parameters
string
id
Required

id


Request Body

Example Body:

{
  "name": "Test",
  "id": "test",
  "active": false,
  "expression": "{{sourceName}}='localhost'",
  "description": "test description",
  "samplingPercent": 100
}
SpanSamplingPolicy of type(s) application/json
Optional

Show optional properties

{
    "name": "string",
    "id": "string",
    "expression": "string"
}
{
    "name": "string",
    "id": "string",
    "active": false,
    "description": "string",
    "expression": "string",
    "createdEpochMillis": 0,
    "updatedEpochMillis": 0,
    "samplingPercent": 0,
    "deleted": false,
    "creatorId": "string",
    "updaterId": "string"
}
Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns ResponseContainerSpanSamplingPolicy of type(s) application/json
"ResponseContainerSpanSamplingPolicy Object"
object
status
Required

status

object
response
Optional

Span Sampling Policy


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"expression:"string","id:"string","name:"string"}' https://{api_host}/api/v2/spansamplingpolicy/{id}