Skip to content

Releases: tdeekens/promster

@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

@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

@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

@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]

28 Aug 10:24
b108d0d
Compare
Choose a tag to compare

Major Changes

Patch Changes

@promster/[email protected]

28 Aug 10:24
b108d0d
Compare
Choose a tag to compare

Major Changes

  • #1088 7cfd21c Thanks @tdeekens! - Breaking droping support for Node.js v14

  • #1087 2e848c1 Thanks @roumigus! - The up metric of each server integrating @promster has been renamed to nodejs_up. This is to avoid a collision with the existing up metric Prometheus uses.

    You can still rename this metric to anything you prefer when condfigurating @promster/express for instance like this:

    const prometheusMetricsMiddleware = createPrometheusMetricsMiddleware({
      options: {
        metricNames: {
          up: ['service_name_up'],
        },
      },
    });

Patch Changes

@promster/[email protected]

28 Aug 10:24
b108d0d
Compare
Choose a tag to compare

Major Changes

  • #1088 7cfd21c Thanks @tdeekens! - Breaking droping support for Node.js v14

  • #1087 2e848c1 Thanks @roumigus! - The up metric of each server integrating @promster has been renamed to nodejs_up. This is to avoid a collision with the existing up metric Prometheus uses.

    You can still rename this metric to anything you prefer when condfigurating @promster/express for instance like this:

    const prometheusMetricsMiddleware = createPrometheusMetricsMiddleware({
      options: {
        metricNames: {
          up: ['service_name_up'],
        },
      },
    });

Patch Changes