-
Notifications
You must be signed in to change notification settings - Fork 953
Collector exporter #552
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
Merged
Merged
Collector exporter #552
Changes from 22 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
abaadf8
chore: linting
obecny 7af153f
feat(collector-exporter): new exporter for opentelemetry collector
obecny 48818fb
chore: updating readme
obecny 1cbf4c6
chore: undo auto lint fix - which is wrong
obecny 952f99d
chore: updates after comments
obecny 1fe92b8
chore: renaming util to transform
obecny eb1bb4f
chore: renaming types, last comments from review
obecny c09bc5c
chore: adding missing links
obecny 4920633
chore: fixes after comments
obecny 7c2923b
chore: fixes after comments
obecny a42d992
chore: fixes after comments
obecny e3203f0
chore: updating jsdoc
obecny dfbbc94
chore: enabling attributes
obecny 08d8f8c
chore: adding script to generate package version file
obecny 0fed57a
chore: naming
obecny 1868afd
chore: adding todo
obecny bfea4ca
chore: updating types for link
obecny bab3be3
chore: fixing typo
obecny a000724
chore: removing unnecessary typing
obecny 03d8c8b
chore: const for enum
obecny 2b67bed
chore: adding missing interface for message event
obecny 89ad47c
chore: adding timestamp example
obecny c1ee7f6
chore: changes after review
obecny 535d536
chore: adding case when the exporter is shutdown but export is called
obecny 7849823
chore: adding missing header for request to prevent instrumentation
obecny 6859550
Merge branch 'master' into collector-exporter
mayurkale22 0c2657d
Merge branch 'master' into collector-exporter
mayurkale22 b603098
Merge branch 'master' into collector-exporter
mayurkale22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
18 changes: 18 additions & 0 deletions
18
examples/basic-tracer-node/docker/ot/collector-config.yaml
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| receivers: | ||
| opencensus: | ||
| endpoint: 0.0.0.0:55678 | ||
|
|
||
| exporters: | ||
| zipkin: | ||
| url: "http://zipkin-all-in-one:9411/api/v2/spans" | ||
|
|
||
| processors: | ||
| batch: | ||
| queued_retry: | ||
|
|
||
| service: | ||
| pipelines: | ||
| traces: | ||
| receivers: [opencensus] | ||
| exporters: [zipkin] | ||
| processors: [batch, queued_retry] |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| version: "2" | ||
| services: | ||
|
|
||
| # Collector | ||
| collector: | ||
| image: otelcol:latest | ||
| command: ["--config=/conf/collector-config.yaml", "--log-level=DEBUG"] | ||
| volumes: | ||
| - ./collector-config.yaml:/conf/collector-config.yaml | ||
| ports: | ||
| - "55678:55678" | ||
| depends_on: | ||
| - zipkin-all-in-one | ||
|
|
||
| # Zipkin | ||
| zipkin-all-in-one: | ||
| image: openzipkin/zipkin:latest | ||
| ports: | ||
| - "9411:9411" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /*! | ||
| * Copyright 2019, 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. | ||
| */ | ||
|
|
||
| const license = | ||
| `/*! | ||
| * Copyright 2019, 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. | ||
| */ | ||
| `; | ||
|
|
||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
|
|
||
| const appRoot = path.resolve(__dirname); | ||
| const fileUrl = path.resolve(`${appRoot}/../src/common/version.ts`); | ||
| const packageJsonUrl = path.resolve(`${appRoot}/../package.json`); | ||
| const pjson = require(packageJsonUrl); | ||
| const content = ` | ||
| // this is autogenerated file, see scripts/version-update.js | ||
| export const VERSION = '${pjson.version}'; | ||
| `; | ||
|
|
||
| fs.writeFileSync(fileUrl, `${license}${content}`); |
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| /*! | ||
| * Copyright 2019, 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. | ||
| */ | ||
|
|
||
| // this is autogenerated file, see scripts/version-update.js | ||
| export const VERSION = '0.2.0'; |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.