Detalhes do pacote

elastic-apm-js-core

elastic1.7kMITdepreciado3.0.1

We have moved! Please install the latest version from @elastic/apm-rum

Elastic apm core

readme (leia-me)

Elastic APM JavaScript core (for development)

Build status js-standard-style

Sauce Test Status
Cross Browser testing is provided by Sauce Labs

This is the core JavaScript module for Elastic APM.

Only use this repo if you want to implement an integration for a framework Elastic APM does not support yet.

Use our base agent for error logging and performance monitoring.

Development

Use npm run karma to continuously run unit tests during development.

Use npm test to run both unit tests and e2e tests.

Making a release

Use npm run prepare-patch or npm run prepare-minor to prepare and publish a release. Note that you should NOT make a new commit for the release it will be done in the preparation process.

License

MIT


Made with ♥️ and ☕️ by Elastic and our community.

changelog (log de mudanças)

3.0.1 (2019-01-29)

3.0.0 (2019-01-29)

BREAKING CHANGE

  • remove setTags in favor of addTags API (#28)

Bug Fixes

  • propagate transaction ID for unsampled transactions (#30) (3884806)
  • remove invalid chars in span tags and marks (#34) (9bdc575)

Features

  • include transaction flags on error (#29) (36c13f3)

Performance Improvements

  • introduce minimal url parser to reduce bundle size (#32) (2000ee2)

2.5.0 (2019-01-21)

Added product notice.

2.4.0 (2019-01-15)

Bug Fixes

  • remove query strings from xhr and fetch span name (#24) (cc82e92)
  • set pageLoadTransactionName when transaction ends from configs (#25) (afdacee)

Features

  • add parsing distributed tracing header, and time origin to utils (#21) (b3601c2)
  • implement OpenTracing Tracer (#23) (2a3c411)
  • send span sync field to apm server (#17) (abad58b)
  • use parentId in Spans (#19) (4aa5773)

2.3.0 (2018-12-17)

Features

  • add addContext and addTags to Spans and Transactions (#16) (de0d72b)
  • add paint timing mark to page-load transaction (#14) (544530a)

2.2.0 (2018-12-05)

Features

  • introduce subtype and action in Spans (#9) (5fd4af7)

2.1.1 (2018-12-05)

Bug Fixes

  • use dist package for url-parse to avoid packaging issues (#10) (9018a8d)

Features

  • introduce subtype and action in Spans (#9) (5fd4af7)

2.1.0 (2018-11-23)

Features

2.0.0 (2018-11-14)

BREAKING CHANGES

  • use apm-server intake/v2 (APM Server v6.5+)

Bug Fixes

  • adopt the w3c dt header flag proposal (ff0fdfc)
  • don't startSpan after transaction has ended (137bd63)
  • filter out invalid spans (c9fb0e1)
  • ignore apm-server xhrs (5527cca)
  • merging two spans related to fetching the initial document (6ee4108)
  • set pageLoadTraceId on page load transacton start (c6510ca)
  • set the sync property on xhr spans (4283e85)
  • shorten page load config options (2550c24)
  • truncate active spans on transaction end (a28759c)
  • validate DT header (5aa1cc1)

Features

  • add allowed origins for distributed tracing (0812ff7)
  • add DT header to same origin http requests (a60d6d9)
  • add DT page load trace id config option (149ebaa)
  • add pageLoadTransactionName config option (a2644df)
  • add parent_id to spans (21934b3)
  • add sampling for transactions (8105e0c)
  • generate random ids based on DT guidelines (8fd2581)
  • provide span_count.started (f3effcf)
  • use correct id format for transactions and spans (d44592e)

1.0.0 (2018-08-23)

BREAKING CHANGES

  • use /v1/rum endpoint (APM Server v6.4+)

0.8.2 (2018-08-17)

Bug Fixes

  • check marks are greater than fetchStart (6d35eaa)

Features

  • add transactionDurationThreshold config option (67f5c5d)

0.8.1 (2018-08-14)

Bug Fixes

  • filter out transactions with zero spans (2311a53)

0.8.0 (2018-07-02)

BREAKING CHANGES

  • remove patch-common

Bug Fixes

  • minor fixes in Span and Transaction (718cc19)
  • simplify patchMethod (204f1c0)

Features

0.7.1 (2018-06-22)

Bug Fixes

  • consolidate Transaction and Error contexts (f34aabd)

0.7.0 (2018-06-15)

BREAKING CHANGES

  • remove timestamp on error and transaction payload

Bug Fixes

  • update span.context.http.url structure (40d6bb2)

0.6.2 (2018-06-12)

Bug Fixes

  • remove marks before fetchStart to align with resource spans (824af14)
  • spans generated from navigation and resource timing apis (912cf02), closes #25

0.6.1 (2018-05-28)

Features

0.6.0 (2018-05-22)

BREAKING CHANGES

  • rename hasRouterLibrary to sendPageLoadTransaction

0.5.1 (2018-05-01)

0.5.0 (2018-04-23)

Bug Fixes

  • default custom for transaction type (997c747)

Features

  • ability to add navigation timing marks to any transaction (e8c934c)

0.4.3 (2018-04-10)

Bug Fixes

  • error-logging: parsing error stack fails if error object is string (6365b15)

0.4.2 (2018-04-03)

0.4.1 (2018-04-03)

Bug Fixes

  • apm-server: ignore falsy payload after filtering (0bef5b6)

0.4.0 (2018-03-27)

Bug Fixes

  • remove _debug from transaction context (d2fc1b9)
  • remove query string from resource entries (7507a5c)

Features

  • add http.raw.url to span context (45aaa5b)

0.3.1 (2018-03-08)

Bug Fixes

  • payload span start time (e30724f)

0.3.0 (2018-03-06)

Bug Fixes

  • apply serverStringLimit to user context (b24b038)
  • minor improvements in navigation timing spans (d1008d5)
  • review log levels and update logLevel lib (b68db82)

Features

  • add LoggingService (6f190ac)
  • add setTags to ConfigService (5c65967)
  • check isActive before adding items to the queue (b372b35)

0.2.2 (2018-02-16)

Bug Fixes

  • set descriptive names for navigation timing spans (d270c78)

Features

  • enforce server string limit (09ca8c6)

0.2.1 (2018-02-07)

0.2.0 (2018-02-06)

BREAKING CHANGES

  • ServiceFactory now requires init to be called

Bug Fixes

  • minor improvements to queue and throttle (e2aae2c)
  • remove transaction.unknownName (b760c87)

Features

  • add Queue and throttle (f987f41)
  • throttle adding to both errorQueue and transactionQueue (f1590f5)

0.1.8 (2018-01-10)

0.1.7 (2018-01-10)

Bug Fixes

  • add language name to the payload (ac39335)
  • check config validity before sending the payload (1486fd6)

0.1.6 (2018-01-09)

0.1.5 (2018-01-08)

0.1.4 (2018-01-05)

Bug Fixes

  • set default agentName to js-base (3bfeb55)

Features

  • add marks data to the payload (ec17bc7)
  • add user context and custom context (319e131)

0.1.3 (2018-01-05)

Bug Fixes

  • remove in_app field from stacktraces (610cc6e)

Features

  • add serviceVersion configuration (c468338)

0.1.2 (2017-12-20)

Bug Fixes

  • ApmServer: don't send empty payload (78c58ad)

0.1.1 (2017-12-13)

0.1.0 (2017-12-13)

BREAKING CHANGES

  • rename apiOrigin to serverUrl
  • rename app to service
  • rename trace to span

0.0.4 (2017-11-21)

0.0.3 (2017-11-20)

0.0.2 (2017-11-14)