Skip to main content
GET
/
api
/
v1
/
config
/
trace-behaviors
/
{slug}
cURL
curl --request GET \
  --url https://{tenant}.chronosphere.io/api/v1/config/trace-behaviors/{slug} \
  --header 'API-Token: <api-key>'
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://{tenant}.chronosphere.io/api/v1/config/trace-behaviors/{slug}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("API-Token", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://{tenant}.chronosphere.io/api/v1/config/trace-behaviors/{slug}")
.header("API-Token", "<api-key>")
.asString();
const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};

fetch('https://{tenant}.chronosphere.io/api/v1/config/trace-behaviors/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://{tenant}.chronosphere.io/api/v1/config/trace-behaviors/{slug}"

headers = {"API-Token": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "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
    },
    "fast_sample_options": {
      "enabled": true,
      "max_duration_seconds": 123,
      "sample_rate": 123
    },
    "large_trace_sample_options": {
      "enabled": true,
      "sample_rate": 123,
      "span_count_threshold": 123
    },
    "slow_sample_options": {
      "enabled": true,
      "min_duration_seconds": 123,
      "sample_rate": 123
    },
    "slug": "<string>",
    "small_trace_sample_options": {
      "enabled": true,
      "sample_rate": 123,
      "span_count_threshold": 123
    },
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
{
"message": "<string>"
}
{
"message": "<string>"
}
{}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Response

A successful response.

trace_behavior
object