Skip to content

feat: add instrumentation library and update collector exporter#1171

Merged
mayurkale22 merged 20 commits intoopen-telemetry:masterfrom
mwear:instrumentation-library
Jun 23, 2020
Merged

feat: add instrumentation library and update collector exporter#1171
mayurkale22 merged 20 commits intoopen-telemetry:masterfrom
mwear:instrumentation-library

Conversation

@mwear
Copy link
Copy Markdown
Member

@mwear mwear commented Jun 10, 2020

Which problem is this PR solving?

Short description of the changes

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jun 10, 2020

CLA Check
The committers are authorized under a signed CLA.

@codecov
Copy link
Copy Markdown

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
Copy Markdown
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

Comment thread packages/opentelemetry-core/src/common/types.ts
Comment thread packages/opentelemetry-exporter-collector/test/common/transform.test.ts Outdated
assert.deepStrictEqual(span.attributes, {});
assert.deepStrictEqual(span.links, []);
assert.deepStrictEqual(span.events, []);
assert.ok(span.instrumentationLibrary);
Copy link
Copy Markdown
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
Copy Markdown
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 force-pushed the instrumentation-library branch from d1bdf89 to 4e65c7a Compare June 11, 2020 01:11
@mwear mwear requested a review from legendecas as a code owner June 18, 2020 20:35
Copy link
Copy Markdown
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

Comment thread packages/opentelemetry-core/package.json Outdated
Comment thread packages/opentelemetry-exporter-collector/src/transform.ts Outdated
@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