From 7b9e6b1d9d3f5bcc6c91555bc618a0ad091a6633 Mon Sep 17 00:00:00 2001 From: Emanuel Lauria Date: Tue, 20 Mar 2018 15:47:20 +0100 Subject: [PATCH 1/7] add zappr --- .zappr.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .zappr.yaml diff --git a/.zappr.yaml b/.zappr.yaml new file mode 100644 index 0000000..cd92813 --- /dev/null +++ b/.zappr.yaml @@ -0,0 +1,13 @@ +# for github.com +approvals: + groups: + zalando: + minimum: 2 + from: + orgs: + - "zalando" + + # Allow last committer / PR creator to approve as well. + # This will probably become the default in zappr. + ignore: none +X-Zalando-Team: "zmon" From 8f13c48110ea02a68712f467b19f71731ed08962 Mon Sep 17 00:00:00 2001 From: Emanuel Lauria Date: Tue, 20 Mar 2018 15:53:19 +0100 Subject: [PATCH 2/7] update readme --- .zappr.yaml | 13 ------------- README.md | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 .zappr.yaml diff --git a/.zappr.yaml b/.zappr.yaml deleted file mode 100644 index cd92813..0000000 --- a/.zappr.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# for github.com -approvals: - groups: - zalando: - minimum: 2 - from: - orgs: - - "zalando" - - # Allow last committer / PR creator to approve as well. - # This will probably become the default in zappr. - ignore: none -X-Zalando-Team: "zmon" diff --git a/README.md b/README.md index 858c141..69439b6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # OpenTracing JavaScript Utils -Utilities to add OpenTracing EUMs +Utilities to Instrument JavaScript Web Applications with OpenTracing. ### Early stage From d335cd21d00ed58a2cebc025ca2900cf9832ac00 Mon Sep 17 00:00:00 2001 From: Emanuel Lauria Date: Tue, 19 Jun 2018 17:16:56 +0200 Subject: [PATCH 3/7] update publish options --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index a9f1fb4..c8fcd1a 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,12 @@ "version": "1.0.0", "description": "Utilities to Instrument your JS code with OpenTracing", "main": "index.js", + "unpkg": "dist/opentracing-javascript-utils.min.js", "directories": { "lib": "lib" }, "scripts": { + "prepublish": "npm run build", "build": "webpack" }, "repository": { From 8ba6ef5e4cd2ea8495ab22ca59485cdf005220d0 Mon Sep 17 00:00:00 2001 From: Emanuel Lauria Date: Tue, 19 Jun 2018 17:21:06 +0200 Subject: [PATCH 4/7] update webpack.config --- webpack.config.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 732fb07..4af69cc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,21 +15,8 @@ switch(CONFIG) { defines.DEBUG = true; devtool = 'source-map'; break; - case 'prod': - // plugins.push(new webpack.optimize.OccurenceOrderPlugin()); - // plugins.push(new webpack.optimize.UglifyJsPlugin({ - // minimize: true, - // compress : { - // dead_code : true, - // unused : true, - // warnings : false, - // } - // })); - // plugins.push(new webpack.optimize.DedupePlugin()); - break; default: - console.error('Unexpected BUILD_CONFIG!'); - process.exit(1); + break; } var bundleName = 'opentracing-javascript-utils' + bundleSuffix; From b4ba5f2431ec7bb72cb0f512ff06dff6d79758ad Mon Sep 17 00:00:00 2001 From: Emanuel Lauria Date: Tue, 19 Jun 2018 17:21:27 +0200 Subject: [PATCH 5/7] update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c8fcd1a..5917778 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opentracing-javascript-utils", - "version": "1.0.0", + "version": "1.0.1", "description": "Utilities to Instrument your JS code with OpenTracing", "main": "index.js", "unpkg": "dist/opentracing-javascript-utils.min.js", From 6207e289a2d911f0864dfaf8085c06db3f5091dc Mon Sep 17 00:00:00 2001 From: Emanuel Lauria Date: Tue, 19 Jun 2018 17:22:07 +0200 Subject: [PATCH 6/7] bump version to 1.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5917778..6998d40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opentracing-javascript-utils", - "version": "1.0.1", + "version": "1.0.2", "description": "Utilities to Instrument your JS code with OpenTracing", "main": "index.js", "unpkg": "dist/opentracing-javascript-utils.min.js", From 3bdc62676cb9cd730ae0a4ae9e00428c6ed1e997 Mon Sep 17 00:00:00 2001 From: Emanuel Lauria Date: Tue, 19 Jun 2018 17:25:37 +0200 Subject: [PATCH 7/7] add minified dist --- dist/opentracing-javascript-utils.min.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 dist/opentracing-javascript-utils.min.js diff --git a/dist/opentracing-javascript-utils.min.js b/dist/opentracing-javascript-utils.min.js new file mode 100644 index 0000000..2ac7d11 --- /dev/null +++ b/dist/opentracing-javascript-utils.min.js @@ -0,0 +1 @@ +!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=7)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(){}return t.prototype.context=function(){return this._context()},t.prototype.tracer=function(){return this._tracer()},t.prototype.setOperationName=function(t){return this._setOperationName(t),this},t.prototype.setBaggageItem=function(t,e){return this._setBaggageItem(t,e),this},t.prototype.getBaggageItem=function(t){return this._getBaggageItem(t)},t.prototype.setTag=function(t,e){return this._addTags((n={},n[t]=e,n)),this;var n},t.prototype.addTags=function(t){return this._addTags(t),this},t.prototype.log=function(t,e){return this._log(t,e),this},t.prototype.logEvent=function(t,e){return this._log({event:t,payload:e})},t.prototype.finish=function(t){this._finish(t)},t.prototype._context=function(){return r.spanContext},t.prototype._tracer=function(){return r.tracer},t.prototype._setOperationName=function(t){},t.prototype._setBaggageItem=function(t,e){},t.prototype._getBaggageItem=function(t){},t.prototype._addTags=function(t){},t.prototype._log=function(t,e){},t.prototype._finish=function(t){},t}();e.Span=o,e.default=o},function(t,e,n){"use strict";function r(){e.tracer=new a.default,e.span=new o.default,e.spanContext=new i.default}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(3),a=n(2);e.tracer=null,e.spanContext=null,e.span=null,e.initialize=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n(1),i=n(0),a=function(){function t(){}return t.prototype.startSpan=function(t,e){if(void 0===e&&(e={}),e.childOf){var n=r.childOf(e.childOf);e.references?e.references.push(n):e.references=[n],delete e.childOf}return this._startSpan(t,e)},t.prototype.inject=function(t,e,n){return t instanceof i.default&&(t=t.context()),this._inject(t,e,n)},t.prototype.extract=function(t,e){return this._extract(t,e)},t.prototype._startSpan=function(t,e){return o.span},t.prototype._inject=function(t,e,n){},t.prototype._extract=function(t,e){return o.spanContext},t}();e.Tracer=a,e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t}();e.SpanContext=r,e.default=r},function(t,e,n){"use strict";function r(t){return t instanceof c.default&&(t=t.context()),new a.default(i.REFERENCE_CHILD_OF,t)}function o(t){return t instanceof c.default&&(t=t.context()),new a.default(i.REFERENCE_FOLLOWS_FROM,t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),a=n(6),c=n(0);e.childOf=r,e.followsFrom=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_BINARY="binary",e.FORMAT_TEXT_MAP="text_map",e.FORMAT_HTTP_HEADERS="http_headers",e.REFERENCE_CHILD_OF="child_of",e.REFERENCE_FOLLOWS_FROM="follows_from"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(){function t(t,e){this._type=t,this._referencedContext=e instanceof r.default?e.context():e}return t.prototype.type=function(){return this._type},t.prototype.referencedContext=function(){return this._referencedContext},t}();e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var n=0;n