| 1 |
{ |
| 2 |
"file_format": "0.3", |
| 3 |
"disabled": false, |
| 4 |
"attribute_limits": { |
| 5 |
"attribute_value_length_limit": 4096, |
| 6 |
"attribute_count_limit": 128 |
| 7 |
}, |
| 8 |
"logger_provider": { |
| 9 |
"processors": [ |
| 10 |
{ |
| 11 |
"batch": { |
| 12 |
"schedule_delay": 5000, |
| 13 |
"export_timeout": 30000, |
| 14 |
"max_queue_size": 2048, |
| 15 |
"max_export_batch_size": 512, |
| 16 |
"exporter": { |
| 17 |
"otlp": { |
| 18 |
"protocol": "http/protobuf", |
| 19 |
"endpoint": "http://localhost:4318/v1/logs", |
| 20 |
"certificate": "/app/cert.pem", |
| 21 |
"client_key": "/app/cert.pem", |
| 22 |
"client_certificate": "/app/cert.pem", |
| 23 |
"headers": [ |
| 24 |
{ |
| 25 |
"name": "api-key", |
| 26 |
"value": "1234" |
| 27 |
} |
| 28 |
], |
| 29 |
"headers_list": "api-key=1234", |
| 30 |
"compression": "gzip", |
| 31 |
"timeout": 10000, |
| 32 |
"insecure": false |
| 33 |
} |
| 34 |
} |
| 35 |
} |
| 36 |
}, |
| 37 |
{ |
| 38 |
"simple": { |
| 39 |
"exporter": { |
| 40 |
"console": {} |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
], |
| 45 |
"limits": { |
| 46 |
"attribute_value_length_limit": 4096, |
| 47 |
"attribute_count_limit": 128 |
| 48 |
} |
| 49 |
}, |
| 50 |
"meter_provider": { |
| 51 |
"readers": [ |
| 52 |
{ |
| 53 |
"pull": { |
| 54 |
"exporter": { |
| 55 |
"prometheus": { |
| 56 |
"host": "localhost", |
| 57 |
"port": 9464, |
| 58 |
"without_units": false, |
| 59 |
"without_type_suffix": false, |
| 60 |
"without_scope_info": false, |
| 61 |
"with_resource_constant_labels": { |
| 62 |
"included": [ |
| 63 |
"service*" |
| 64 |
], |
| 65 |
"excluded": [ |
| 66 |
"service.attr1" |
| 67 |
] |
| 68 |
} |
| 69 |
} |
| 70 |
} |
| 71 |
}, |
| 72 |
"producers": [ |
| 73 |
{ |
| 74 |
"opencensus": {} |
| 75 |
} |
| 76 |
] |
| 77 |
}, |
| 78 |
{ |
| 79 |
"periodic": { |
| 80 |
"interval": 5000, |
| 81 |
"timeout": 30000, |
| 82 |
"exporter": { |
| 83 |
"otlp": { |
| 84 |
"protocol": "http/protobuf", |
| 85 |
"endpoint": "http://localhost:4318/v1/metrics", |
| 86 |
"certificate": "/app/cert.pem", |
| 87 |
"client_key": "/app/cert.pem", |
| 88 |
"client_certificate": "/app/cert.pem", |
| 89 |
"headers": [ |
| 90 |
{ |
| 91 |
"name": "api-key", |
| 92 |
"value": "1234" |
| 93 |
} |
| 94 |
], |
| 95 |
"headers_list": "api-key=1234", |
| 96 |
"compression": "gzip", |
| 97 |
"timeout": 10000, |
| 98 |
"insecure": false, |
| 99 |
"temporality_preference": "delta", |
| 100 |
"default_histogram_aggregation": "base2_exponential_bucket_histogram" |
| 101 |
} |
| 102 |
} |
| 103 |
}, |
| 104 |
"producers": [ |
| 105 |
{ |
| 106 |
"prometheus": {} |
| 107 |
} |
| 108 |
] |
| 109 |
}, |
| 110 |
{ |
| 111 |
"periodic": { |
| 112 |
"exporter": { |
| 113 |
"console": {} |
| 114 |
} |
| 115 |
} |
| 116 |
} |
| 117 |
], |
| 118 |
"views": [ |
| 119 |
{ |
| 120 |
"selector": { |
| 121 |
"instrument_name": "my-instrument", |
| 122 |
"instrument_type": "histogram", |
| 123 |
"unit": "ms", |
| 124 |
"meter_name": "my-meter", |
| 125 |
"meter_version": "1.0.0", |
| 126 |
"meter_schema_url": "https://opentelemetry.io/schemas/1.16.0" |
| 127 |
}, |
| 128 |
"stream": { |
| 129 |
"name": "new_instrument_name", |
| 130 |
"description": "new_description", |
| 131 |
"aggregation": { |
| 132 |
"explicit_bucket_histogram": { |
| 133 |
"boundaries": [ |
| 134 |
0, |
| 135 |
5, |
| 136 |
10, |
| 137 |
25, |
| 138 |
50, |
| 139 |
75, |
| 140 |
100, |
| 141 |
250, |
| 142 |
500, |
| 143 |
750, |
| 144 |
1000, |
| 145 |
2500, |
| 146 |
5000, |
| 147 |
7500, |
| 148 |
10000 |
| 149 |
], |
| 150 |
"record_min_max": true |
| 151 |
} |
| 152 |
}, |
| 153 |
"attribute_keys": { |
| 154 |
"included": [ |
| 155 |
"key1", |
| 156 |
"key2" |
| 157 |
], |
| 158 |
"excluded": [ |
| 159 |
"key3" |
| 160 |
] |
| 161 |
} |
| 162 |
} |
| 163 |
} |
| 164 |
] |
| 165 |
}, |
| 166 |
"propagator": { |
| 167 |
"composite": [ |
| 168 |
"tracecontext", |
| 169 |
"baggage", |
| 170 |
"b3", |
| 171 |
"b3multi", |
| 172 |
"jaeger", |
| 173 |
"xray", |
| 174 |
"ottrace" |
| 175 |
] |
| 176 |
}, |
| 177 |
"tracer_provider": { |
| 178 |
"processors": [ |
| 179 |
{ |
| 180 |
"batch": { |
| 181 |
"schedule_delay": 5000, |
| 182 |
"export_timeout": 30000, |
| 183 |
"max_queue_size": 2048, |
| 184 |
"max_export_batch_size": 512, |
| 185 |
"exporter": { |
| 186 |
"otlp": { |
| 187 |
"protocol": "http/protobuf", |
| 188 |
"endpoint": "http://localhost:4318/v1/traces", |
| 189 |
"certificate": "/app/cert.pem", |
| 190 |
"client_key": "/app/cert.pem", |
| 191 |
"client_certificate": "/app/cert.pem", |
| 192 |
"headers": [ |
| 193 |
{ |
| 194 |
"name": "api-key", |
| 195 |
"value": "1234" |
| 196 |
} |
| 197 |
], |
| 198 |
"headers_list": "api-key=1234", |
| 199 |
"compression": "gzip", |
| 200 |
"timeout": 10000, |
| 201 |
"insecure": false |
| 202 |
} |
| 203 |
} |
| 204 |
} |
| 205 |
}, |
| 206 |
{ |
| 207 |
"batch": { |
| 208 |
"exporter": { |
| 209 |
"zipkin": { |
| 210 |
"endpoint": "http://localhost:9411/api/v2/spans", |
| 211 |
"timeout": 10000 |
| 212 |
} |
| 213 |
} |
| 214 |
} |
| 215 |
}, |
| 216 |
{ |
| 217 |
"simple": { |
| 218 |
"exporter": { |
| 219 |
"console": {} |
| 220 |
} |
| 221 |
} |
| 222 |
} |
| 223 |
], |
| 224 |
"limits": { |
| 225 |
"attribute_value_length_limit": 4096, |
| 226 |
"attribute_count_limit": 128, |
| 227 |
"event_count_limit": 128, |
| 228 |
"link_count_limit": 128, |
| 229 |
"event_attribute_count_limit": 128, |
| 230 |
"link_attribute_count_limit": 128 |
| 231 |
}, |
| 232 |
"sampler": { |
| 233 |
"parent_based": { |
| 234 |
"root": { |
| 235 |
"trace_id_ratio_based": { |
| 236 |
"ratio": 0.0001 |
| 237 |
} |
| 238 |
}, |
| 239 |
"remote_parent_sampled": { |
| 240 |
"always_on": {} |
| 241 |
}, |
| 242 |
"remote_parent_not_sampled": { |
| 243 |
"always_off": {} |
| 244 |
}, |
| 245 |
"local_parent_sampled": { |
| 246 |
"always_on": {} |
| 247 |
}, |
| 248 |
"local_parent_not_sampled": { |
| 249 |
"always_off": {} |
| 250 |
} |
| 251 |
} |
| 252 |
} |
| 253 |
}, |
| 254 |
"resource": { |
| 255 |
"attributes": [ |
| 256 |
{ |
| 257 |
"name": "service.name", |
| 258 |
"value": "unknown_service" |
| 259 |
}, |
| 260 |
{ |
| 261 |
"name": "string_key", |
| 262 |
"value": "value", |
| 263 |
"type": "string" |
| 264 |
}, |
| 265 |
{ |
| 266 |
"name": "bool_key", |
| 267 |
"value": true, |
| 268 |
"type": "bool" |
| 269 |
}, |
| 270 |
{ |
| 271 |
"name": "int_key", |
| 272 |
"value": 1, |
| 273 |
"type": "int" |
| 274 |
}, |
| 275 |
{ |
| 276 |
"name": "double_key", |
| 277 |
"value": 1.1, |
| 278 |
"type": "double" |
| 279 |
}, |
| 280 |
{ |
| 281 |
"name": "string_array_key", |
| 282 |
"value": [ |
| 283 |
"value1", |
| 284 |
"value2" |
| 285 |
], |
| 286 |
"type": "string_array" |
| 287 |
}, |
| 288 |
{ |
| 289 |
"name": "bool_array_key", |
| 290 |
"value": [ |
| 291 |
true, |
| 292 |
false |
| 293 |
], |
| 294 |
"type": "bool_array" |
| 295 |
}, |
| 296 |
{ |
| 297 |
"name": "int_array_key", |
| 298 |
"value": [ |
| 299 |
1, |
| 300 |
2 |
| 301 |
], |
| 302 |
"type": "int_array" |
| 303 |
}, |
| 304 |
{ |
| 305 |
"name": "double_array_key", |
| 306 |
"value": [ |
| 307 |
1.1, |
| 308 |
2.2 |
| 309 |
], |
| 310 |
"type": "double_array" |
| 311 |
} |
| 312 |
], |
| 313 |
"attributes_list": "service.namespace=my-namespace,service.version=1.0.0", |
| 314 |
"detectors": { |
| 315 |
"attributes": { |
| 316 |
"included": [ |
| 317 |
"process.*" |
| 318 |
], |
| 319 |
"excluded": [ |
| 320 |
"process.command_args" |
| 321 |
] |
| 322 |
} |
| 323 |
}, |
| 324 |
"schema_url": "https://opentelemetry.io/schemas/1.16.0" |
| 325 |
}, |
| 326 |
"instrumentation": { |
| 327 |
"general": { |
| 328 |
"peer": { |
| 329 |
"service_mapping": [ |
| 330 |
{ |
| 331 |
"peer": "1.2.3.4", |
| 332 |
"service": "FooService" |
| 333 |
}, |
| 334 |
{ |
| 335 |
"peer": "2.3.4.5", |
| 336 |
"service": "BarService" |
| 337 |
} |
| 338 |
] |
| 339 |
}, |
| 340 |
"http": { |
| 341 |
"client": { |
| 342 |
"request_captured_headers": [ |
| 343 |
"Content-Type", |
| 344 |
"Accept" |
| 345 |
], |
| 346 |
"response_captured_headers": [ |
| 347 |
"Content-Type", |
| 348 |
"Content-Encoding" |
| 349 |
] |
| 350 |
}, |
| 351 |
"server": { |
| 352 |
"request_captured_headers": [ |
| 353 |
"Content-Type", |
| 354 |
"Accept" |
| 355 |
], |
| 356 |
"response_captured_headers": [ |
| 357 |
"Content-Type", |
| 358 |
"Content-Encoding" |
| 359 |
] |
| 360 |
} |
| 361 |
} |
| 362 |
}, |
| 363 |
"cpp": { |
| 364 |
"example": { |
| 365 |
"property": "value" |
| 366 |
} |
| 367 |
}, |
| 368 |
"dotnet": { |
| 369 |
"example": { |
| 370 |
"property": "value" |
| 371 |
} |
| 372 |
}, |
| 373 |
"erlang": { |
| 374 |
"example": { |
| 375 |
"property": "value" |
| 376 |
} |
| 377 |
}, |
| 378 |
"go": { |
| 379 |
"example": { |
| 380 |
"property": "value" |
| 381 |
} |
| 382 |
}, |
| 383 |
"java": { |
| 384 |
"example": { |
| 385 |
"property": "value" |
| 386 |
} |
| 387 |
}, |
| 388 |
"js": { |
| 389 |
"example": { |
| 390 |
"property": "value" |
| 391 |
} |
| 392 |
}, |
| 393 |
"php": { |
| 394 |
"example": { |
| 395 |
"property": "value" |
| 396 |
} |
| 397 |
}, |
| 398 |
"python": { |
| 399 |
"example": { |
| 400 |
"property": "value" |
| 401 |
} |
| 402 |
}, |
| 403 |
"ruby": { |
| 404 |
"example": { |
| 405 |
"property": "value" |
| 406 |
} |
| 407 |
}, |
| 408 |
"rust": { |
| 409 |
"example": { |
| 410 |
"property": "value" |
| 411 |
} |
| 412 |
}, |
| 413 |
"swift": { |
| 414 |
"example": { |
| 415 |
"property": "value" |
| 416 |
} |
| 417 |
} |
| 418 |
} |
| 419 |
} |