File tree 1 file changed +20
-6
lines changed
content/en/docs/collector
1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -350,14 +350,28 @@ processors:
350
350
# Data sources: traces, metrics, logs
351
351
batch:
352
352
353
- # Data sources: metrics
353
+ # Data sources: metrics, metrics, logs
354
354
filter:
355
+ error_mode: ignore
356
+ traces:
357
+ span:
358
+ - 'attributes["container.name"] == "app_container_1"'
359
+ - 'resource.attributes["host.name"] == "localhost"'
360
+ - 'name == "app_3"'
361
+ spanevent:
362
+ - 'attributes["grpc"] == true'
363
+ - 'IsMatch(name, ".*grpc.*")'
355
364
metrics:
356
- include:
357
- match_type: regexp
358
- metric_names:
359
- - prefix/.*
360
- - prefix_.*
365
+ metric:
366
+ - 'name == "my.metric" and resource.attributes["my_label"] == "abc123"'
367
+ - 'type == METRIC_DATA_TYPE_HISTOGRAM'
368
+ datapoint:
369
+ - 'metric.type == METRIC_DATA_TYPE_SUMMARY'
370
+ - 'resource.attributes["service.name"] == "my_service_name"'
371
+ logs:
372
+ log_record:
373
+ - 'IsMatch(body, ".*password.*")'
374
+ - 'severity_number < SEVERITY_NUMBER_WARN'
361
375
362
376
# Data sources: traces, metrics, logs
363
377
memory_limiter:
You can’t perform that action at this time.
0 commit comments