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 SDK] Print InstrumentationScope as part of Logs ostream exporter. #1882

Closed
lalitb opened this issue Dec 22, 2022 · 1 comment · Fixed by #2004
Closed

[Logs SDK] Print InstrumentationScope as part of Logs ostream exporter. #1882

lalitb opened this issue Dec 22, 2022 · 1 comment · Fixed by #2004
Assignees
Labels

Comments

@lalitb
Copy link
Member

lalitb commented Dec 22, 2022

Describe your environment N/A

Steps to reproduce
Run ostream exporter for logs.

What is the expected behavior?
It should dump instrumentation scope fields along with others.

What is the actual behavior?
Instrumentation scope fields are not dumped as seen from the unit-test - https://github.com/open-telemetry/opentelemetry-cpp/blob/main/exporters/ostream/test/ostream_log_test.cc

  std::vector<std::string> expected_output{
      "{\n"
      "  timestamp          : " +
          std::to_string(now.time_since_epoch().count()) +
          "\n"
          "  observed_timestamp : " +
          std::to_string(now.time_since_epoch().count()) +
          "\n"
          "  severity_num       : 1\n"
          "  severity_text      : TRACE\n"
          "  body               : Message\n",
      "  resource           : \n",
      "telemetry.sdk.version: " OPENTELEMETRY_VERSION "\n",
      "telemetry.sdk.name: opentelemetry\n",
      "telemetry.sdk.language: cpp\n",
      "  attributes         : \n"
      "  trace_id           : 00000000000000000000000000000000\n"
      "  span_id            : 0000000000000000\n"
      "  trace_flags        : 00\n"
      "}\n"};

Additional context
N/A

@lalitb lalitb added bug Something isn't working logs area:exporter labels Dec 22, 2022
@lalitb lalitb changed the title [Logs SDK] Print InstrumentationScope as part of Logs OStream exporter. [Logs SDK] Print InstrumentationScope as part of Logs ostream exporter. Dec 22, 2022
@github-actions
Copy link

This issue was marked as stale due to lack of activity.

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

Successfully merging a pull request may close this issue.

2 participants