Skip to content

Commit

Permalink
Merge branch 'main' into sdk-early-instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
Flarna authored Jan 25, 2023
2 parents e70e9ca + b5ef0e4 commit b57ce13
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/

### :bug: (Bug Fix)

* fix(otlp-proto-exporter-base): Match Accept header with Content-Type in the proto exporter
[#3562](https://github.com/open-telemetry/opentelemetry-js/pull/3562) @scheler

### :books: (Refine Doc)

### :house: (Internal)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function pbjs(files) {
const outFile = path.join(generatedPath, 'root.js');
const pbjsOptions = [
'-t', 'static-module',
'-p', protosPath,
'-w', 'commonjs',
'--null-defaults',
'-o', outFile,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export abstract class OTLPProtoExporterBrowserBase<
sendWithXhr(
new Blob([body], { type: 'application/x-protobuf' }),
this.url,
{ ...this._headers, 'Content-Type': 'application/x-protobuf' },
{
...this._headers,
'Content-Type': 'application/x-protobuf',
Accept: 'application/x-protobuf',
},
this.timeoutMillis,
onSuccess,
onError
Expand Down
2 changes: 1 addition & 1 deletion experimental/packages/otlp-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.32",
"karma-webpack": "4.0.2",
"mkdirp": "1.0.4",
"mkdirp": "2.1.3",
"mocha": "10.0.0",
"nyc": "15.1.0",
"rimraf": "3.0.2",
Expand Down

0 comments on commit b57ce13

Please sign in to comment.