Skip to content
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

feat: add instrumentation library and update collector exporter #1171

Merged
merged 20 commits into from
Jun 23, 2020

Conversation

mwear
Copy link
Member

@mwear mwear commented Jun 10, 2020

Which problem is this PR solving?

Short description of the changes

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 10, 2020

CLA Check
The committers are authorized under a signed CLA.

@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

Merging #1171 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1171      +/-   ##
==========================================
+ Coverage   93.20%   93.24%   +0.03%     
==========================================
  Files         122      122              
  Lines        3533     3551      +18     
  Branches      714      714              
==========================================
+ Hits         3293     3311      +18     
  Misses        240      240              
Impacted Files Coverage Δ
packages/opentelemetry-core/src/common/types.ts 100.00% <ø> (ø)
packages/opentelemetry-metrics/src/export/types.ts 100.00% <ø> (ø)
.../opentelemetry-exporter-collector/src/transform.ts 96.34% <100.00%> (+0.62%) ⬆️
packages/opentelemetry-metrics/src/Meter.ts 93.75% <100.00%> (+0.09%) ⬆️
...ackages/opentelemetry-metrics/src/MeterProvider.ts 100.00% <100.00%> (ø)
packages/opentelemetry-metrics/src/Metric.ts 100.00% <100.00%> (ø)
...s/opentelemetry-metrics/src/UpDownCounterMetric.ts 100.00% <100.00%> (ø)
...s/opentelemetry-tracing/src/BasicTracerProvider.ts 76.47% <100.00%> (+0.71%) ⬆️
packages/opentelemetry-tracing/src/Span.ts 100.00% <100.00%> (ø)
packages/opentelemetry-tracing/src/Tracer.ts 100.00% <100.00%> (ø)
... and 1 more

Copy link
Member

@obecny obecny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, few minor comments

@@ -230,6 +230,7 @@ describe('Span', () => {
assert.deepStrictEqual(span.attributes, {});
assert.deepStrictEqual(span.links, []);
assert.deepStrictEqual(span.events, []);
assert.ok(span.instrumentationLibrary);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instanceof maybe ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's a very simple type, there is only an interface. I added more detailed assertions though.

@mwear mwear requested a review from legendecas as a code owner June 18, 2020 20:35
Copy link
Member

@dyladan dyladan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good aside from one nit

packages/opentelemetry-core/package.json Outdated Show resolved Hide resolved
packages/opentelemetry-exporter-collector/src/transform.ts Outdated Show resolved Hide resolved
@dyladan dyladan added the Merge:LGTM This PR is ready to be merged by a Maintainer (has enough valid approvals, successful build, etc.) label Jun 23, 2020
@mayurkale22 mayurkale22 merged commit badbb9d into open-telemetry:master Jun 23, 2020
@dyladan dyladan added the enhancement New feature or request label Jul 6, 2020
pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
* feat: add dataloader instrumentation

* fix: linter errors and a few mistypings

* docs: add component_owners entry for dataloader instrumentation

* fix: avoid double shimming of the batch load function

* test: cover more lines in tests

* refactor: remove prefix from directory name

* feat: add configuration option for requiring parent span

* chore: drop version number to 0.1.0

* chore: add dataloader instrumentation to release-please-config

* feat: add dataloader instrumentation to auto-instrumentations-node

* fix: use correct version of Node

* fix: add missing export

Also make instrumentation export explicit

* test: adjust assertion to be correct

* chore: change node types to be consistent with other plugins

Co-authored-by: Rauno Viskus <Rauno56@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Merge:LGTM This PR is ready to be merged by a Maintainer (has enough valid approvals, successful build, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Spec] Tracers should reference an InstrumentationLibrary rather than a Resource
6 participants