Update OpenTelemetry exporter settings
curl --request PATCH \
--url https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endpoint": "<string>",
"auth_options": {
"header_name": "<string>",
"username": "<string>"
},
"credential_secret_id": "<string>",
"headers": {},
"secret_headers": {},
"sample_percent": 50
}
'import requests
url = "https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}"
payload = {
"endpoint": "<string>",
"auth_options": {
"header_name": "<string>",
"username": "<string>"
},
"credential_secret_id": "<string>",
"headers": {},
"secret_headers": {},
"sample_percent": 50
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
endpoint: '<string>',
auth_options: {header_name: '<string>', username: '<string>'},
credential_secret_id: '<string>',
headers: {},
secret_headers: {},
sample_percent: 50
})
};
fetch('https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'endpoint' => '<string>',
'auth_options' => [
'header_name' => '<string>',
'username' => '<string>'
],
'credential_secret_id' => '<string>',
'headers' => [
],
'secret_headers' => [
],
'sample_percent' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}"
payload := strings.NewReader("{\n \"endpoint\": \"<string>\",\n \"auth_options\": {\n \"header_name\": \"<string>\",\n \"username\": \"<string>\"\n },\n \"credential_secret_id\": \"<string>\",\n \"headers\": {},\n \"secret_headers\": {},\n \"sample_percent\": 50\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"endpoint\": \"<string>\",\n \"auth_options\": {\n \"header_name\": \"<string>\",\n \"username\": \"<string>\"\n },\n \"credential_secret_id\": \"<string>\",\n \"headers\": {},\n \"secret_headers\": {},\n \"sample_percent\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"endpoint\": \"<string>\",\n \"auth_options\": {\n \"header_name\": \"<string>\",\n \"username\": \"<string>\"\n },\n \"credential_secret_id\": \"<string>\",\n \"headers\": {},\n \"secret_headers\": {},\n \"sample_percent\": 50\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"endpoint": "<string>",
"variant": "otel",
"encoding": "protobuf",
"auth_kind": "none",
"auth_options": {
"header_name": "<string>",
"username": "<string>"
},
"headers": {},
"secret_headers": {},
"sample_percent": 50,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"credential_secret_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Events
Update OpenTelemetry exporter settings
Updates an exporter’s endpoint, variant, encoding, headers, or sampling. Omitted fields stay unchanged; headers and secret_headers each replace the whole map when present. The project is fixed at creation. Changes also apply to spans already queued for export.
PATCH
/
orgs
/
{orgID}
/
projects
/
{projectID}
/
otel-exporters
/
{exporterID}
Update OpenTelemetry exporter settings
curl --request PATCH \
--url https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endpoint": "<string>",
"auth_options": {
"header_name": "<string>",
"username": "<string>"
},
"credential_secret_id": "<string>",
"headers": {},
"secret_headers": {},
"sample_percent": 50
}
'import requests
url = "https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}"
payload = {
"endpoint": "<string>",
"auth_options": {
"header_name": "<string>",
"username": "<string>"
},
"credential_secret_id": "<string>",
"headers": {},
"secret_headers": {},
"sample_percent": 50
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
endpoint: '<string>',
auth_options: {header_name: '<string>', username: '<string>'},
credential_secret_id: '<string>',
headers: {},
secret_headers: {},
sample_percent: 50
})
};
fetch('https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'endpoint' => '<string>',
'auth_options' => [
'header_name' => '<string>',
'username' => '<string>'
],
'credential_secret_id' => '<string>',
'headers' => [
],
'secret_headers' => [
],
'sample_percent' => 50
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}"
payload := strings.NewReader("{\n \"endpoint\": \"<string>\",\n \"auth_options\": {\n \"header_name\": \"<string>\",\n \"username\": \"<string>\"\n },\n \"credential_secret_id\": \"<string>\",\n \"headers\": {},\n \"secret_headers\": {},\n \"sample_percent\": 50\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"endpoint\": \"<string>\",\n \"auth_options\": {\n \"header_name\": \"<string>\",\n \"username\": \"<string>\"\n },\n \"credential_secret_id\": \"<string>\",\n \"headers\": {},\n \"secret_headers\": {},\n \"sample_percent\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/otel-exporters/{exporterID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"endpoint\": \"<string>\",\n \"auth_options\": {\n \"header_name\": \"<string>\",\n \"username\": \"<string>\"\n },\n \"credential_secret_id\": \"<string>\",\n \"headers\": {},\n \"secret_headers\": {},\n \"sample_percent\": 50\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"org_id": "<string>",
"project_id": "<string>",
"endpoint": "<string>",
"variant": "otel",
"encoding": "protobuf",
"auth_kind": "none",
"auth_options": {
"header_name": "<string>",
"username": "<string>"
},
"headers": {},
"secret_headers": {},
"sample_percent": 50,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"credential_secret_id": "<string>"
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>",
"current_digest": "<string>",
"issues": [
{
"path": "<string>",
"message": "<string>",
"line": 2,
"column": 2
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
bearerAuthbrowserSessionCookie & csrfHeader
Path Parameters
Body
application/json
Response
Exporter updated.
How the exporter authenticates to the endpoint: none, Authorization Bearer token, a custom API key header named by auth_options.header_name, or HTTP Basic auth with auth_options.username and the secret password.
Available options:
none, bearer_token, api_key_header, basic