NAME

Plack::Middleware::OpenTelemetry - Plack middleware to setup OpenTelemetry spans

VERSION

version 0.242510

SYNOPSIS

builder {
  enable "Plack::Middleware::OpenTelemetry",
    include_client_errors => 0;
};

DESCRIPTION

Plack::Middleware::OpenTelemetry will setup an OpenTelemetry span for the request.

PARAMETERS

include_client_errors

By default client errors (HTTP status 400-499) don't set span status to "error". Enable this option to include them as errors.

NOTES

The Net::Async::HTTP::Server plackup server is recommended: plackup -s Net::Async::HTTP::Server

SEE ALSO

Plack::Middleware, OpenTelemetry::SDK

AUTHOR

Ask Bjørn Hansen <ask@develooper.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by Ask Bjørn Hansen.

This is free software; you can redistribute it and/or modify it under the MIT software license.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 181:

Non-ASCII character seen before =encoding in 'Bjørn'. Assuming UTF-8