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

Logs: ObservedTimestamp field is missing in console exporter output #3550

Closed
tigrannajaryan opened this issue Nov 22, 2023 · 1 comment · Fixed by #3564
Closed

Logs: ObservedTimestamp field is missing in console exporter output #3550

tigrannajaryan opened this issue Nov 22, 2023 · 1 comment · Fixed by #3564
Labels
bug Something isn't working logging

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?
ObservedTimestamp value set equal to Timestamp as required by the spec.

What is the actual behavior?

ObservedTimestamp field is not present at all in the console exporter output:

{
    "body": "\u001b[33mPress CTRL+C to quit\u001b[0m",
    "severity_number": "<SeverityNumber.INFO: 9>",
    "severity_text": "INFO",
    "attributes": {
        "otelSpanID": "0",
        "otelTraceID": "0",
        "otelTraceSampled": false,
        "otelServiceName": "dice-server"
    },
    "dropped_attributes": 0,
    "timestamp": "2023-11-22T17:01:35.072886Z",
    "trace_id": "0x00000000000000000000000000000000",
    "span_id": "0x0000000000000000",
    "trace_flags": 0,
    "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)"
}

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

@pegasas
Copy link
Contributor

pegasas commented Dec 3, 2023

I create an PR for trying to fix this.
feel free to comments or ping me if any concern.

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
None yet
Development

Successfully merging a pull request may close this issue.

3 participants