Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New component: exceptionlogsprocessor #17277

Closed
2 tasks
marctc opened this issue Dec 28, 2022 · 4 comments
Closed
2 tasks

New component: exceptionlogsprocessor #17277

marctc opened this issue Dec 28, 2022 · 4 comments
Labels
Accepted Component New component has been sponsored

Comments

@marctc
Copy link
Contributor

marctc commented Dec 28, 2022

The purpose and use-cases of the new component

The purpose of this processor component is to extract logs from recorded exceptions from spans

This will generate a log line with the following format:

{
  "severity": "ERROR",
  "attributes": {
    "exception.message": "division by zero",
    "exception.stacktrace": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/site-packages/opentelemetry/trace/__init__.py\", line 541, in use_span\n    yield span\n  File \"/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py\", line 55, in inner\n    response = get_response(request)\n  File \"/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py\", line 197, in _get_response\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\n  File \"/code/./example/views.py\", line 24, in index\n    random.choice([f0, f1, f2, f3])()\n  File \"/code/./example/views.py\", line 7, in f0\n    a = 1/0\nZeroDivisionError: division by zero\n",
    "exception.type": "ZeroDivisionError",
    "http.flavor": "1.1",
    "http.host": "127.0.0.1:8000",
    "http.method": "GET",
    "http.scheme": "http",
    "http.server_name": "644f31ce42a5",
    "http.status_code": "",
    "http.target": "/",
    "http.user_agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0",
    "service.name": "faulty"
  }
}

Example configuration for the component

receivers:
  jaeger:
    protocols:
      thrift_http:
        endpoint: "0.0.0.0:14278"

  # Dummy receiver that's never used, because a pipeline is required to have one.
  otlp/exceptionlogs:
    protocols:
      grpc:
        endpoint: "localhost:12345"

  otlp:
    protocols:
      grpc:
        endpoint: "localhost:55677"

processors:
  batch:
  exceptionlogs:
    logs_exporter: loki

exporters:
  jaeger:
    endpoint: localhost:14250

  loki:
    endpoint: "http://loki:3100/loki/api/v1/push"

service:
  pipelines:
    traces:
      receivers: [jaeger]
      processors: [exceptionlogs, batch]
      exporters: [jaeger]

    logs:
      receivers: [otlp/exceptionlogs]
      exporters: [loki]

Telemetry data types supported

traces

Is this a vendor-specific component?

  • This is a vendor-specific component
  • If this is a vendor-specific component, I am proposing to contribute this as a representative of the vendor.

Sponsor (optional)

@gouthamve

Additional context

No response

@marctc marctc added the needs triage New item requiring triage label Dec 28, 2022
@jpkrohling
Copy link
Member

Perhaps this is another case for connectors, @djaglowski / @kovrus? If this is going to be a connector, I can sponsor this.

@jpkrohling jpkrohling added the Accepted Component New component has been sponsored label Jan 11, 2023
@djaglowski
Copy link
Member

@jpkrohling, I agree - this is exactly the kind of use case connectors were designed to support.

@atoulme atoulme removed the needs triage New item requiring triage label Jan 15, 2023
@github-actions
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@marctc
Copy link
Contributor Author

marctc commented Apr 24, 2023

Merged with #17272

@marctc marctc closed this as completed Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Component New component has been sponsored
Projects
None yet
Development

No branches or pull requests

4 participants