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

Console exporter: inconsistent "resource" representation #3547

Closed
tigrannajaryan opened this issue Nov 22, 2023 · 0 comments · Fixed by #3567
Closed

Console exporter: inconsistent "resource" representation #3547

tigrannajaryan opened this issue Nov 22, 2023 · 0 comments · Fixed by #3567
Labels
bug Something isn't working logging
Projects

Comments

@tigrannajaryan
Copy link
Member

Describe your environment
Mac OS X
Python 3.9.6

Steps to reproduce
Run Getting Started, metrics example.

What is the expected behavior?
"resource" field structure consistent for spans and logs.

What is the actual behavior?
"resource" field structure is different for spans and logs.

Spans:

    "resource": {
        "attributes": {
            "telemetry.sdk.language": "python",
            "telemetry.sdk.name": "opentelemetry",
            "telemetry.sdk.version": "1.21.0",
            "service.name": "dice-server",
            "telemetry.auto.version": "0.42b0"
        },
        "schema_url": ""
    }

Logs:

    "resource": "BoundedAttributes({'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.21.0', 'service.name': 'dice-server', 'telemetry.auto.version': '0.42b0'}, maxlen=None)"

I think I like the Span's version better.

Additional context
Part of review open-telemetry/community#1751

@tigrannajaryan tigrannajaryan added the bug Something isn't working label Nov 22, 2023
@lzchen lzchen added the logging label Nov 22, 2023
@lzchen lzchen added this to To do in Logging RC via automation Feb 16, 2024
Logging RC automation moved this from To do to Done Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working logging
Projects
Development

Successfully merging a pull request may close this issue.

2 participants