Skip to content

Commit

Permalink
Publish v0.2.0 (#29)
Browse files Browse the repository at this point in the history
* change to type alias and add better comments for the initializers

* bump version numbers for publishing
  • Loading branch information
keturiosakys authored Apr 4, 2023
1 parent b161b12 commit 59990f4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/autometrics-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autometrics/autometrics",
"version": "0.1.2",
"version": "0.2.0",
"description": "Easily add metrics to your system -- and actually understand them using automatically customized Prometheus queries",
"author": "Fiberplane<[email protected]>",
"contributors": [
Expand Down
7 changes: 4 additions & 3 deletions packages/autometrics-lib/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import {
let autometricsMeterProvider: MeterProvider;
let exporter: MetricReader;

interface Exporter extends MetricReader {}
type Exporter = MetricReader

export type initOptions = {
/**
* A custom exporter to be used instead of the bundled Prometheus Exporter on port 9464
*/
exporter?: Exporter;
/**
* The full URL of the aggregating push gateway for metrics to be submitted to.
* The full URL (including http://) of the aggregating push gateway for metrics to be submitted to.
*/
pushGateway?: string;
/**
Expand All @@ -30,7 +30,8 @@ export type initOptions = {
};

/**
* Set your exporter. Required if used in the browser side
* Optional initialization function to set a custom exporter or push gateway for client-side applications.
* Required if using autometrics in a client-side application.
*
* @param {initOptions} options
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/autometrics-typescript-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autometrics/typescript-plugin",
"version": "0.1.2",
"version": "0.2.0",
"description": "Language service plugin for Autometrics",
"author": "Fiberplane<[email protected]>",
"contributors": [
Expand Down
4 changes: 2 additions & 2 deletions packages/autometrics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "autometrics",
"version": "0.1.2",
"version": "0.2.0",
"type": "module",
"description": "Easily add metrics to your system -- and actually understand them using automatically customized Prometheus queries",
"author": "Fiberplane<[email protected]>",
Expand Down Expand Up @@ -30,7 +30,7 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@autometrics/autometrics": "^0.1.2",
"@autometrics/autometrics": "^0.2.0",
"@opentelemetry/exporter-prometheus": "^0.35.1",
"@opentelemetry/sdk-metrics": "^1.9.0"
}
Expand Down

0 comments on commit 59990f4

Please sign in to comment.