Skip to content

Commit

Permalink
add version string (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
EddeCCC authored Mar 22, 2024
1 parent b23e5c7 commit 5812f16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boomerang-opentelemetry-plugin",
"version": "0.48.0-1",
"version": "0.48.0-3",
"description": "This is a Boomerang plugin for collecting spans using the OpenTelemetry framework and exporting them, e.g., to an OpenTelemetry collector.",
"repository": "https://github.com/NovatecConsulting/boomerang-opentelemetry-plugin",
"license": "Apache-2.0",
Expand Down
13 changes: 10 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ if (isIE && usesPrototype) {
delete Array.prototype.entries;
}

import OpenTelemetryTracingImpl from './impl';

if (currentEntriesFn) {
Array.prototype.entries = currentEntriesFn;
}

// Get current plugin version specified in package.json
const { version } = require('../package.json');

import OpenTelemetryTracingImpl from './impl';

/**
* Skeleton template for all boomerang plugins.
*
Expand Down Expand Up @@ -83,10 +86,14 @@ if (currentEntriesFn) {
return this;
},

// Return the current OpenTelemetry-Plugin version from package.json
// Has to be updated for every release!
version: version,

// Executes the specified function within the context of the given span
withSpan: impl.withSpan,

// Getting an OpenTelemetry tracer instace for manual tracing
// Getting an OpenTelemetry tracer instance for manual tracing
getTracer: impl.getTracer,

// Returns the internally used OpenTelemetry API
Expand Down

0 comments on commit 5812f16

Please sign in to comment.