-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix OTLP http responses (#1010)
## Which problem is this PR solving? Refinery was not returning the correct OTLP payload and not always using the correct `Content-Type` in the response. - closes #1008 ## Short description of the changes This PR attempts to fix the OTLP response while leaving other protocols unaffected. - Creates a new error handler method for the OTLP endpoint - Ensures a `ExportTraceServiceResponse` object is returned for success and a grpc `Status` object is used for failure. - Changes the "bad API key" response code from 400 to 401. --------- Co-authored-by: Robb Kidd <[email protected]>
- Loading branch information
1 parent
e1186ea
commit 6f5aef9
Showing
5 changed files
with
34 additions
and
10 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