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

Update OTLP to latest version #1384

Merged

Conversation

tigrannajaryan
Copy link
Member

@tigrannajaryan tigrannajaryan commented Jul 16, 2020

Update OTLP to latest version

  • Removed the draft logsproto and now using the logs Protobufs from
    official OTLP repo. The rest of the changes are forced by this.
  • Added InstrumentationLibraryLogs and change the type of LogRecord.Body
    to AnyValue.
  • Updated fileexporter and logexporter to use the new log data type.

@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #1384 into master will increase coverage by 0.07%.
The diff coverage is 96.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1384      +/-   ##
==========================================
+ Coverage   90.32%   90.39%   +0.07%     
==========================================
  Files         218      218              
  Lines       15292    15419     +127     
==========================================
+ Hits        13812    13938     +126     
+ Misses       1071     1070       -1     
- Partials      409      411       +2     
Impacted Files Coverage Δ
exporter/loggingexporter/logging_exporter.go 88.17% <70.83%> (-0.72%) ⬇️
internal/data/log.go 76.66% <81.81%> (+4.66%) ⬆️
consumer/pdata/common.go 95.70% <100.00%> (+0.62%) ⬆️
consumer/pdata/generated_log.go 100.00% <100.00%> (ø)
consumer/pdata/log.go 100.00% <100.00%> (ø)
exporter/fileexporter/file_exporter.go 70.33% <100.00%> (+0.25%) ⬆️
exporter/otlpexporter/otlp.go 69.56% <100.00%> (ø)
internal/data/testdata/log.go 100.00% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 86.04% <0.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b66a2de...ff673d8. Read the comment docs.

- Removed the draft logsproto and now using the logs Protobufs from
  official OTLP repo. The rest of the changes are forced by this.
- Added InstrumentationLibraryLogs and change the type of LogRecord.Body
  to AnyValue.
- Updated fileexporter and logexporter to use the new log data type.
@tigrannajaryan tigrannajaryan changed the title [WIP] [DONT REVIEW] Update OTLP to latest version Update OTLP to latest version Jul 16, 2020
@bogdandrutu bogdandrutu merged commit f64f960 into open-telemetry:master Jul 16, 2020
@tigrannajaryan tigrannajaryan deleted the feature/tigran/updateproto branch September 11, 2020 16:00
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* Call otel.Handle with non-nil errors

That's what normally happens in other call sites. Those two didn't
check it, but passed the "error" to Handle. The default, delegating
implementation of ErrorHandler was printing the error unconditionally,
which resulted in pointless lines like `2020/12/07 19:51:28 <nil>` in
demos, for example.

* Add tests

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants