Skip to content

adds debugexporter and updates dependencies #1520

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

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

tommyorndorff
Copy link
Contributor

Fixes #1408 by adding the debug exporter in the exporter.

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 18:19
@serkan-ozal
Copy link
Contributor

@tylerbenson Are we good to merge this one?

@tylerbenson tylerbenson merged commit 0dd0572 into open-telemetry:main Sep 14, 2024
12 checks passed
@tylerbenson tylerbenson added the go Pull requests that update Go code label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collector ships with deprecated logging exporter, not the modern debug exporter
3 participants