-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make pdata.LogsToOtlp impossible to call from outside this repo
pdata.LogsToOtlp is intended to be used only by OTLP exporter (for which is the native data format) and fileexporter (for which we do want to output internal representation for debugging purposes). Everyone else is supposed to use public member functions of pdata.Logs. This changes makes it impossible to use pdata.LogsToOtlp outside this repo by hiding it behind an intermediary struct that is declared in an internal package. This is necessary to prevent accidental use of LogsToOtlp and the OTLP data struct which we prohibit to do since the OTLP data structs may change in the future. As part of this change I had to move timestamp-related functions from internal to pdata package (where they logically belong) to avoid circular package references.
- Loading branch information
Tigran Najaryan
committed
Sep 1, 2020
1 parent
eaaebf1
commit cf9e4e0
Showing
18 changed files
with
314 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.