Skip to content

Releases: tdeekens/promster

v14.0.0

12 Apr 20:06
854cc6d
Compare
Choose a tag to compare

@promster/[email protected]

Patch Changes

@promster/[email protected]

Patch Changes

@promster/[email protected]

Patch Changes

@promster/[email protected]

Patch Changes

@promster/[email protected]

Patch Changes

@promster/[email protected]

Major Changes

  • #1210 7668337 Thanks @tdeekens! - Replace @sematext/gc-stats with prometheus-gc-stats.

    The latter is better supported and doesn't require any userland install. The module however does not allow to full configuration of metric names. Hence the metric names have changed:

    We now expose:

    1. nodejs_gc_runs_total: Counts the number of time GC is invoked
    2. nodejs_gc_pause_seconds_total: Time spent in GC in seconds
    3. nodejs_gc_reclaimed_bytes_total: The number of bytes GC has freed

Patch Changes

@promster/[email protected]

Patch Changes

@promster/[email protected]

Patch Changes

  • #1210 7668337 Thanks @tdeekens! - Replace @sematext/gc-stats with prometheus-gc-stats.

    The latter is better supported and doesn't require any userland install. The module however does not allow to full configuration of metric names. Hence the metric names have changed:

    We now expose:

    1. nodejs_gc_runs_total: Counts the number of time GC is invoked
    2. nodejs_gc_pause_seconds_total: Time spent in GC in seconds
    3. nodejs_gc_reclaimed_bytes_total: The number of bytes GC has freed

v13.0.0

12 Feb 03:21
Compare
Choose a tag to compare

@promster/[email protected]

Major Changes

  • #1175 2da8d99 Thanks @tdeekens! - Remove support for Node.js v18

    We didn't adjust functionality to remove support but changed the engines requirement.

Patch Changes

v12.1.0

11 Jan 12:13
281e00d
Compare
Choose a tag to compare

@promster/[email protected]

Minor Changes

Patch Changes

@promster/[email protected]

Minor Changes

Patch Changes

@promster/[email protected]

Minor Changes

Patch Changes

@promster/[email protected]

Minor Changes

Patch Changes

@promster/[email protected]

Minor Changes

Patch Changes

@promster/[email protected]

Minor Changes

Patch Changes

@promster/[email protected]

Minor Changes

Patch Changes

@promster/[email protected]

Minor Changes

v12.0.0

10 Oct 11:10
610180d
Compare
Choose a tag to compare

Important

All @promster/* packages are released using a fixed (synchronized) version across all of its packages. As a result you may see a higher version bump when updating than needed. For instance @promster/types will jump from v5 to v12 while it's actually one major increment with the changes listed below.

@promster/[email protected]

Major Changes

Minor Changes

Patch Changes

@promster/[email protected]

Major Changes

Minor Changes

Patch Changes

@promster/[email protected]

Major Changes

Minor Changes

Patch Changes

@promster/[email protected]

Major Changes

Minor Changes

Patch Changes

@promster/[email protected]

Major Changes

Minor Changes

Patch Changes

@promster/[email protected]

Major Changes

Minor Changes

Patch Changes

@promster/[email protected]

Major Changes

Minor Changes

Patch Changes

@promster/[email protected]

Major Changes

Minor Changes

@promster/[email protected]

01 Sep 06:35
eeed04e
Compare
Choose a tag to compare

Major Changes

  • #1099 c3fbd90 Thanks @tdeekens! - Allow customization of individual metrics.

    Previously we only allowed customizing a all histogram and percentile based metrics once with a buckets and percentiles option. This is too restrictive in cases in which you need to customize metrics individually.

    As a result you can now pass metricBuckets and metricPercentiles as options. Both of which are a Record<string, number[]>. The key needs to match a an existing metric type.

    This is a more elaborate example:

    const middleware = createMiddleware({
      app,
      options: {
        metricBuckets: {
          httpRequestContentLengthInBytes: [
            100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
            10000000,
          ],
          httpRequestDurationInSeconds: [
            0.05, 0.1, 0.3, 0.5, 0.8, 1, 1.5, 2, 3, 10,
          ],
        },
        metricPercentiles: {
          httpRequestDurationPerPercentileInSeconds: [0.5, 0.9, 0.95, 0.98, 0.99],
          httpResponseContentLengthInBytes: [
            100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
            10000000,
          ],
        },
      },
    });

    If you used buckets or percentiles before you migrate the values into the structure above.

Patch Changes

@promster/[email protected]

01 Sep 06:35
eeed04e
Compare
Choose a tag to compare

Major Changes

  • #1099 c3fbd90 Thanks @tdeekens! - Allow customization of individual metrics.

    Previously we only allowed customizing a all histogram and percentile based metrics once with a buckets and percentiles option. This is too restrictive in cases in which you need to customize metrics individually.

    As a result you can now pass metricBuckets and metricPercentiles as options. Both of which are a Record<string, number[]>. The key needs to match a an existing metric type.

    This is a more elaborate example:

    const middleware = createMiddleware({
      app,
      options: {
        metricBuckets: {
          httpRequestContentLengthInBytes: [
            100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
            10000000,
          ],
          httpRequestDurationInSeconds: [
            0.05, 0.1, 0.3, 0.5, 0.8, 1, 1.5, 2, 3, 10,
          ],
        },
        metricPercentiles: {
          httpRequestDurationPerPercentileInSeconds: [0.5, 0.9, 0.95, 0.98, 0.99],
          httpResponseContentLengthInBytes: [
            100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
            10000000,
          ],
        },
      },
    });

    If you used buckets or percentiles before you migrate the values into the structure above.

Patch Changes

@promster/[email protected]

01 Sep 06:35
eeed04e
Compare
Choose a tag to compare

Major Changes

  • #1099 c3fbd90 Thanks @tdeekens! - Allow customization of individual metrics.

    Previously we only allowed customizing a all histogram and percentile based metrics once with a buckets and percentiles option. This is too restrictive in cases in which you need to customize metrics individually.

    As a result you can now pass metricBuckets and metricPercentiles as options. Both of which are a Record<string, number[]>. The key needs to match a an existing metric type.

    This is a more elaborate example:

    const middleware = createMiddleware({
      app,
      options: {
        metricBuckets: {
          httpRequestContentLengthInBytes: [
            100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
            10000000,
          ],
          httpRequestDurationInSeconds: [
            0.05, 0.1, 0.3, 0.5, 0.8, 1, 1.5, 2, 3, 10,
          ],
        },
        metricPercentiles: {
          httpRequestDurationPerPercentileInSeconds: [0.5, 0.9, 0.95, 0.98, 0.99],
          httpResponseContentLengthInBytes: [
            100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
            10000000,
          ],
        },
      },
    });

    If you used buckets or percentiles before you migrate the values into the structure above.

Minor Changes

  • #1096 3ce4835 Thanks @tdeekens! - Restructure TypeScript and improve types of skip-fn

    Previously the skip function received generics to pass the request and response type. These are not needed any more. The function exported from the respective package is now typed to it.

Patch Changes

  • #1093 ec70682 Thanks @tdeekens! - Re-export types from each package.

    This is a convenience re-export where prior you had to use the @promster/types package as a standalone import you can now use the package you're using.

    -import { TPromsterOptions } from '@promster/types'
    +import { TPromsterOptions } from '@promster/express'
  • #1098 dae8f75 Thanks @tdeekens! - Update dependencies

  • #1097 04f37e7 Thanks @tdeekens! - Update dependencies

  • Updated dependencies [dae8f75, c3fbd90, 04f37e7]:

@promster/[email protected]

01 Sep 06:46
c88810c
Compare
Choose a tag to compare

Patch Changes

@promster/[email protected]

01 Sep 06:35
eeed04e
Compare
Choose a tag to compare

Major Changes

  • #1099 c3fbd90 Thanks @tdeekens! - Allow customization of individual metrics.

    Previously we only allowed customizing a all histogram and percentile based metrics once with a buckets and percentiles option. This is too restrictive in cases in which you need to customize metrics individually.

    As a result you can now pass metricBuckets and metricPercentiles as options. Both of which are a Record<string, number[]>. The key needs to match a an existing metric type.

    This is a more elaborate example:

    const middleware = createMiddleware({
      app,
      options: {
        metricBuckets: {
          httpRequestContentLengthInBytes: [
            100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
            10000000,
          ],
          httpRequestDurationInSeconds: [
            0.05, 0.1, 0.3, 0.5, 0.8, 1, 1.5, 2, 3, 10,
          ],
        },
        metricPercentiles: {
          httpRequestDurationPerPercentileInSeconds: [0.5, 0.9, 0.95, 0.98, 0.99],
          httpResponseContentLengthInBytes: [
            100000, 200000, 500000, 1000000, 1500000, 2000000, 3000000, 5000000,
            10000000,
          ],
        },
      },
    });

    If you used buckets or percentiles before you migrate the values into the structure above.

Minor Changes

  • #1096 3ce4835 Thanks @tdeekens! - Restructure TypeScript and improve types of skip-fn

    Previously the skip function received generics to pass the request and response type. These are not needed any more. The function exported from the respective package is now typed to it.

  • #1103 0476e91 Thanks @tdeekens! - Add support for generics to skip function.

    The skip function now supports generics for cases in which you have extended the request and response type in your application. The generics default to each framework's request and response type. If you need to overwrite this pass the generics as in skip<MyRequestType, MyResponseType>(request, response).

Patch Changes

@promster/[email protected]

01 Sep 06:46
c88810c
Compare
Choose a tag to compare

Patch Changes