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

ObservedTimestamp should be set when using logs SDK #1984

Closed
owent opened this issue Feb 15, 2023 · 1 comment · Fixed by #1985
Closed

ObservedTimestamp should be set when using logs SDK #1984

owent opened this issue Feb 15, 2023 · 1 comment · Fixed by #1985
Assignees
Labels
bug Something isn't working

Comments

@owent
Copy link
Member

owent commented Feb 15, 2023

Describe your environment

otel-cpp: 1.8.2

What is the expected behavior?
ObservedTimestamp should be set when using logs SDK

What is the actual behavior?
ObservedTimestamp not set

Additional context

From: https://cloud-native.slack.com/archives/C01N3AT62SJ/p1676338373857439

@owent owent added the bug Something isn't working label Feb 15, 2023
@owent owent self-assigned this Feb 15, 2023
@ArielGMachado
Copy link

@owent yesterday I couldn't file this issue because of late hour.
Evidence of this issue about ObservedTimestamp not set by building the examples/otlp/example_otlp_grpc_log and running an otel-col to show the logs:

otel-collector           | 2023-02-15T09:53:09.201Z	info	LogsExporter	{"kind": "exporter", "data_type": "logs", "name": "logging", "#logs": 1}
otel-collector           | 2023-02-15T09:53:09.201Z	info	ResourceLog #0
otel-collector           | Resource SchemaURL: 
otel-collector           | Resource attributes:
otel-collector           |      -> service.name: Str(unknown_service)
otel-collector           |      -> telemetry.sdk.version: Str(1.8.2)
otel-collector           |      -> telemetry.sdk.name: Str(opentelemetry)
otel-collector           |      -> telemetry.sdk.language: Str(cpp)
otel-collector           | ScopeLogs #0
otel-collector           | ScopeLogs SchemaURL: 
otel-collector           | InstrumentationScope foo_library 
otel-collector           | LogRecord #0
otel-collector           | ObservedTimestamp: 1970-01-01 00:00:00 +0000 UTC
otel-collector           | Timestamp: 2023-02-15 09:53:02.639227236 +0000 UTC
otel-collector           | SeverityText: DEBUG
otel-collector           | SeverityNumber: Debug(5)
otel-collector           | Body: Str(body)
otel-collector           | Trace ID: 8af31c6478c798672bdfa524b72e392b
otel-collector           | Span ID: c1751d20ac6b8f16
otel-collector           | Flags: 1
otel-collector           | 	{"kind": "exporter", "data_type": "logs", "name": "logging"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants