Skip to content

Releases: keepsuit/laravel-opentelemetry

v1.0.0

06 Oct 16:58
Compare
Choose a tag to compare

Breaking changes

This release contains a lot of breaking changes

  • Compare your published config and update it accordingly.
  • ENV variables prefix is changed from OT to OTEL and some env variables are changed.
  • Tracer has been completely refactored, manual traces must been updated with the new methods.

Tracer::start, Tracer::measure and Tracer::measureAsync has been removed and replaced with:

Tracer::newSpan('name')->start(); // same as old start
Tracer::newSpan('name')->measure(callback); // same as old measure
Tracer::newSpan('name')->setSpanKind(SpanKind::KIND_PRODUCER)->measure(callback); // same as old measureAsync

Tracer::recordExceptionToSpan has been removed and exception should be recorded directly to span: $span->recordException($exception)

Tracer::setRootSpan($span) has been removed, it was only used to share traceId with log context. This has been replaced with Tracer::updateLogContext()

Logging

This release introduce a custom log channel for laravel otlp that allows to collect laravel logs with OpenTelemetry.
This is the injected otlp channel:

// config/logging.php
'channels' => [
    // injected channel config, you can override it adding an `otlp` channel in your config
    'otlp' => [
        'driver' => 'monolog',
        'handler' => \Keepsuit\LaravelOpenTelemetry\Support\OpenTelemetryMonologHandler::class,
        'level' => 'debug',
    ]
]

What's Changed

Full Changelog: 0.4.0...1.0.0

v0.4.1

06 Oct 16:26
Compare
Choose a tag to compare

What's changed

Full Changelog: 0.4.0...0.4.1

v1.0.0-beta5

22 Apr 15:56
Compare
Choose a tag to compare
v1.0.0-beta5 Pre-release
Pre-release

What's changed

  • Added support for predis client

Full Changelog: 1.0.0-beta4...1.0.0-beta5

v1.0.0-beta4

22 Apr 08:46
Compare
Choose a tag to compare
v1.0.0-beta4 Pre-release
Pre-release

What's Changed

  • Delayed instrumentations registration after app booted
  • Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in #21

Full Changelog: 1.0.0-beta3...1.0.0-beta4

v1.0.0-beta3

08 Apr 12:46
c598b62
Compare
Choose a tag to compare
v1.0.0-beta3 Pre-release
Pre-release

Breaking changes

  • added support for logs export with opentelemetry
  • config is changed since last beta

What's Changed

Full Changelog: 1.0.0-beta2...1.0.0-beta3

v1.0.0-beta2

16 Feb 16:52
Compare
Choose a tag to compare
v1.0.0-beta2 Pre-release
Pre-release

What's changed

  • Fixed nullable queue name

Full Changelog: 1.0.0-beta1...1.0.0-beta2

v1.0.0-beta1

16 Feb 14:01
Compare
Choose a tag to compare
v1.0.0-beta1 Pre-release
Pre-release

Breaking changes

This release contains a lot of breaking changes

  • Compare your published config and update it accordingly.
  • ENV variables prefix is changed from OT to OTEL and some env variables are changed.
  • Tracer has been completely refactored, manual traces must been updated with the new methods.

Tracer::start, Tracer::measure and Tracer::measureAsync has been removed and replaced with:

Tracer::newSpan('name')->start(); // same as old start
Tracer::newSpan('name')->measure(callback); // same as old measure
Tracer::newSpan('name')->setSpanKind(SpanKind::KIND_PRODUCER)->measure(callback); // same as old measureAsync

Tracer::recordExceptionToSpan has been removed and exception should be recorded directly to span: $span->recordException($exception)

Tracer::setRootSpan($span) has been removed, it was only used to share traceId with log context. This has been replaced with Tracer::updateLogContext()

What's Changed

Full Changelog: 0.4.0...1.0.0-beta1

v0.4.0

05 Jan 09:09
Compare
Choose a tag to compare

What's Changed

  • Replaced deprecated trace attributes
  • Increased phpstan level to 7
  • Required stable versions of opentelemetry
  • Bump actions/checkout from 3 to 4 by @dependabot in #6
  • Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #7
  • Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in #8

Full Changelog: 0.3.2...0.4.0

v0.3.1

10 Jul 08:16
Compare
Choose a tag to compare

What's Changed

  • Support for latest open-temetry sdk (which contains some namespace changes)

Full Changelog: 0.3.0...0.3.1

v0.3.0

13 Apr 15:45
Compare
Choose a tag to compare

What's Changed

  • Changed some span names and attributes values to better respect specs
  • Added CacheInstrumentation which records cache events
  • Added EventInstrumentation which records dispatched events

Full Changelog: 0.2.0...0.3.0