open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.97k stars 2.31k forks source link

[coralogixexporter] allow setting application name from custom resource attributes #33217

Closed povilasv closed 2 months ago

povilasv commented 4 months ago

Component(s)

exporter/coralogix

Is your feature request related to a problem? Please describe.

Allow setting application name / subsystem name from custom cx.application.name and cx.subsystem.nameresource attributes.

Describe the solution you'd like

For example for simplified application config we would like this to work:

receivers:
  filelog/nginx:
    include:
      - '/tmp/tmp.log'
    include_file_path: true
    include_file_name: false
    start_at: end
    resource: 
      cx.subsystem.name: nginx
  filelog/access-log:
    include:
      - '/tmp/access.log'
    include_file_path: true
    include_file_name: false
    resource: 
      cx.subsystem.name: access-log
exporters:
  coralogix:
    domain: 'coralogix.com'
    private_key: "XXX"
    application_name: 'app_name'
    timeout: 30s
service:
  pipelines:
    logs:
      receivers: [filelog/nginx, filelog/access-log]
      exporters: [coralogix]

Describe alternatives you've considered

No response

Additional context

No response

github-actions[bot] commented 4 months ago

Pinging code owners for exporter/coralogix: @povilasv @matej-g. See Adding Labels via Comments if you do not have permissions to add labels yourself.

crobert-1 commented 4 months ago

Removing needs triage as issue was filed by code owner, and it makes sense to me.