Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
915ce52
add node & browser platform for exporter-trace-otlp-proto
pkanal Aug 24, 2022
87327f0
add browser support for proto base exporter
pkanal Aug 25, 2022
b7c8c19
add base browser class with xhr support
pkanal Aug 25, 2022
1fec3b3
add browser class for proto trace exporter
pkanal Aug 25, 2022
4214129
slight tweaks to make it work
pkanal Aug 25, 2022
d33f9bb
send data as blob to avoid making sync xhr requests
pkanal Aug 26, 2022
3dd4e17
fix lint
pkanal Oct 3, 2022
35c193f
remove console.logs and add browser proto example
pkanal Oct 3, 2022
5ed212d
cleanup and start adding tests
pkanal Oct 12, 2022
933d37e
Merge branch 'main' of github.com:pkanal/opentelemetry-js into proto-…
scheler Nov 7, 2022
9953561
Undo formatting changes
scheler Nov 7, 2022
5e87c85
exporter-trace-otlp-proto: fix compile errors
scheler Nov 8, 2022
1616d2b
Misc updates from review comments
scheler Nov 9, 2022
e3043b0
Merge branch 'main' of github.com:pkanal/opentelemetry-js into proto-…
scheler Nov 10, 2022
0020c98
Adding changelog entry
scheler Nov 10, 2022
6125ec2
Merge branch 'open-telemetry:main' into proto-exporter-browser
scheler Nov 10, 2022
c420fd0
Reverting format changes not needed
scheler Nov 12, 2022
f260db8
Merge branch 'main' into proto-exporter-browser
legendecas Nov 15, 2022
fb6cfd2
Merge branch 'open-telemetry:main' into proto-exporter-browser
scheler Nov 16, 2022
3d9ae04
Moving the send function into the class for browser case.
scheler Nov 29, 2022
46b665a
Merge branch 'main' into proto-exporter-browser
scheler Nov 30, 2022
2000c41
Adjust indentation to fix lint errors
scheler Nov 30, 2022
6366e4b
Remove template parameter that's not needed
scheler Nov 30, 2022
50e1af0
Apply review changes
scheler Dec 4, 2022
302e09c
Merge branch 'main' into proto-exporter-browser
scheler Dec 4, 2022
a16fcf5
fix the import path
scheler Dec 5, 2022
266d293
Addressing lint errors
scheler Dec 5, 2022
4cd39c0
Merge branch 'main' into proto-exporter-browser
scheler Dec 6, 2022
ed1835e
Merge branch 'open-telemetry:main' into proto-exporter-browser
scheler Dec 10, 2022
84be752
Explicit imports for browser case
scheler Dec 12, 2022
d92f5fe
More explicit exports
scheler Dec 13, 2022
61c7be7
Add missing exports
scheler Dec 13, 2022
3eed4bb
Address lint issues with export statements
scheler Dec 14, 2022
c618265
Adding missing exports
scheler Dec 14, 2022
cbabbf1
Adding missing export
scheler Dec 14, 2022
519fa7c
Using import from top level folder
scheler Dec 14, 2022
5f67e56
Merge branch 'open-telemetry:main' into proto-exporter-browser
scheler Dec 28, 2022
ad2aa0e
Trigger Build
scheler Dec 28, 2022
e57f0f2
Merge branch 'proto-exporter-browser' of github.com:pkanal/openteleme…
scheler Dec 28, 2022
b26fd7f
Merge branch 'main' into proto-exporter-browser
pichlermarc Jan 2, 2023
f421989
Update experimental/packages/exporter-trace-otlp-proto/test/browser/C…
scheler Jan 2, 2023
8064d5b
Remove trailing comma
scheler Jan 2, 2023
2678ff3
Remove blank line to fix lint error
scheler Jan 2, 2023
c898ea2
Fixes based on testing opentelemetry-web/fetch-proto
scheler Jan 6, 2023
d48503a
Add additional missing export
scheler Jan 12, 2023
a800550
Skip hex conversion of traceId for the protobuf
scheler Jan 12, 2023
598bc56
Add esm/esnext builds for the proto packages
scheler Jan 12, 2023
5596d13
Merge branch 'main' into proto-exporter-browser
scheler Jan 13, 2023
1788269
Merge branch 'main' into proto-exporter-browser
legendecas Jan 17, 2023
2e0c4ec
Merge branch 'main' into proto-exporter-browser
scheler Jan 19, 2023
9429864
Trigger Build
scheler Jan 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add browser support for proto base exporter
  • Loading branch information
pkanal committed Oct 3, 2022
commit 87327f0203323c35657fedddbda7bbfc73473817
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { OTLPProtoExporterBrowserBase } from '@opentelemetry/otlp-proto-exporter-base'
export const OTLPTraceExporter = () => {
console.log('exporter-trace-otlp-proto')
OTLPProtoExporterBrowserBase()
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
"repository": "open-telemetry/opentelemetry-js",
"browser": "src/platform/browser/index.ts",
"browser": {
"./src/platform/index.ts": "./src/platform/browser/index.ts",
"./build/esm/platform/index.js": "./build/esm/platform/browser/index.js",
"./build/esnext/platform/index.js": "./build/esnext/platform/browser/index.js",
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
},
"scripts": {
"prepublishOnly": "npm run compile",
"compile": "npm run protos && tsc --build",
Expand Down
20 changes: 1 addition & 19 deletions experimental/packages/otlp-proto-exporter-base/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1 @@
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { OTLPProtoExporterNodeBase } from './OTLPProtoExporterNodeBase';
export * from './types';
export * from './util';
export * from './platform'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const OTLPProtoExporterBrowserBase = () => {
console.log('otlp-proto-exporter-base')
}
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export const OTLPExporter = () => {
console.log('browser exporter')
}
export * from './OTLPProtoExporterBrowserBase'
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './node'
export * from './browser'
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { OTLPProtoExporterNodeBase } from './OTLPProtoExporterNodeBase';
export * from './types';
export * from './util';
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
sendWithHttp
} from '@opentelemetry/otlp-exporter-base';
import type * as protobuf from 'protobufjs';
import * as root from './generated/root';
import * as root from '../../generated/root';

export interface ExportRequestType<T, R = T & { toJSON: () => unknown }> {
create(properties?: T): R;
Expand Down