Skip to content

adding the debug exporter #1517

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

Closed
wants to merge 5 commits into from
Closed

adding the debug exporter #1517

wants to merge 5 commits into from

Conversation

tommyorndorff
Copy link
Contributor

@tommyorndorff tommyorndorff commented Sep 10, 2024

This is my first contrib to this repo so I may need to jump through some hoops.

I did test this with the python sample app and the otel layer. Testing the lambda, I have this output:

START RequestId: b9706450-ef0e-435b-9a90-d3e0236fac6c Version: $LATEST
{
  "level": "info",
  "ts": 1725940823.9194221,
  "msg": "TracesExporter",
  "kind": "exporter",
  "data_type": "traces",
  "name": "debug",
  "resource spans": 1,
  "spans": 1
}
{
  "level": "info",
  "ts": 1725940823.919484,
  "msg": "ResourceSpans #0\nResource SchemaURL: \nResource attributes:\n     -> telemetry.sdk.language: Str(python)\n     -> telemetry.sdk.name: Str(opentelemetry)\n     -> telemetry.sdk.version: Str(1.26.0)\n     -> cloud.region: Str(us-west-2)\n     -> cloud.provider: Str(aws)\n     -> faas.name: Str(otel-proto)\n     -> faas.version: Str($LATEST)\n     -> faas.instance: Str(2024/09/10/[$LATEST]a4fa69b388da4d0db3590b16b86adcdd)\n     -> service.name: Str(otel-proto)\n     -> telemetry.auto.version: Str(0.47b0)\nScopeSpans #0\nScopeSpans SchemaURL: \nInstrumentationScope opentelemetry.instrumentation.aws_lambda 0.47b0\nSpan #0\n    Trace ID       : d726e0e4498b896b7a11a8d596f82bab\n    Parent ID      : \n    ID             : 5c408cc9f917028c\n    Name           : lambda_function.lambda_handler\n    Kind           : Server\n    Start time     : 2024-09-10 04:00:23.785520591 +0000 UTC\n    End time       : 2024-09-10 04:00:23.91755595 +0000 UTC\n    Status code    : Unset\n    Status message : \nAttributes:\n     -> cloud.resource_id: Str(arn:aws:lambda:us-west-2:123:function:otel-proto)\n     -> faas.invocation_id: Str(b9706450-ef0e-435b-9a90-d3e0236fac6c)\n     -> cloud.account.id: Str(123)\n",
  "kind": "exporter",
  "data_type": "traces",
  "name": "debug"
}
END RequestId: b9706450-ef0e-435b-9a90-d3e0236fac6c
REPORT RequestId: b9706450-ef0e-435b-9a90-d3e0236fac6c	Duration: 193.71 ms	Billed Duration: 194 ms	Memory Size: 128 MB	Max Memory Used: 118 MB	
XRAY TraceId: 1-66dfc457-02aea586197e7211103033dd	SegmentId: 73416dee1bb60744	Sampled: true	

Using the following config.yaml:

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: "localhost:4317"
      http:
        endpoint: "localhost:4318"

exporters:
  logging:
    loglevel: debug

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [logging]
    metrics:
      receivers: [otlp]
      exporters: [logging]
  telemetry:
    metrics:
      address: localhost:8888

@tommyorndorff tommyorndorff requested a review from a team September 10, 2024 04:14
Copy link

linux-foundation-easycla bot commented Sep 10, 2024

CLA Missing ID CLA Not Signed

@tommyorndorff
Copy link
Contributor Author

Closing. Will repair the CI steps in my fork and re-submit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants