Prepare v 0.15.1 release (#90)
* Reset version The publish process will bump the version for us * Temporarily remove B3 propagator option
This commit is contained in:
Родитель
88b4facd20
Коммит
7fc80df4f3
|
@ -4,11 +4,14 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v0.16.0
|
||||
### Added
|
||||
## v0.15.1
|
||||
### Fixed
|
||||
- The tracer now supports B3 context propagation. Propagation can be set by using the `propagator` keyword argument to `LightStep.configure`. Valid values are `:lightstep` (default), and `:b3`.
|
||||
- The tracer now closes the active scope or finishes the active span even if an error is raised from the yielded code.
|
||||
|
||||
### Unreleased
|
||||
- In-progress B3 support
|
||||
|
||||
## v0.15.0
|
||||
### Added
|
||||
- A Changelog
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
lightstep (0.16.0)
|
||||
lightstep (0.15.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
opentracing (~> 0.5.0)
|
||||
|
||||
|
|
|
@ -27,9 +27,6 @@ Or install it yourself as:
|
|||
# Initialize the singleton tracer
|
||||
LightStep.configure(component_name: 'lightstep/ruby/example', access_token: 'your_access_token')
|
||||
|
||||
# Specify a propagation format (options are :lightstep (default) and :b3)
|
||||
LightStep.configure(component_name: 'lightstep/ruby/example', access_token: 'your_access_token', propagator: :b3)
|
||||
|
||||
# Create a basic span and attach a log to the span
|
||||
span = LightStep.start_span('my_span')
|
||||
span.log(event: 'hello world', count: 42)
|
||||
|
|
|
@ -6,15 +6,14 @@ require 'lightstep/propagation/b3_propagator'
|
|||
module LightStep
|
||||
module Propagation
|
||||
PROPAGATOR_MAP = {
|
||||
lightstep: LightStepPropagator,
|
||||
b3: B3Propagator
|
||||
lightstep: LightStepPropagator
|
||||
}
|
||||
|
||||
class << self
|
||||
# Constructs a propagator instance from the given propagator name. If the
|
||||
# name is unknown returns the LightStepPropagator as a default
|
||||
#
|
||||
# @param [Symbol, String] propagator_name One of :lightstep or :b3
|
||||
# @param [Symbol, String] propagator_name
|
||||
# @return [Propagator]
|
||||
def [](propagator_name)
|
||||
klass = PROPAGATOR_MAP[propagator_name.to_sym] || LightStepPropagator
|
||||
|
|
|
@ -28,7 +28,7 @@ module LightStep
|
|||
# @param access_token [String] The project access token when pushing to LightStep
|
||||
# @param transport [LightStep::Transport] How the data should be transported
|
||||
# @param tags [Hash] Tracer-level tags
|
||||
# @param propagator [Propagator] Symbol one of :lightstep, :b3 indicating the propgator
|
||||
# @param propagator [Propagator] :lightstep is the only supported option
|
||||
# to use
|
||||
# @return LightStep::Tracer
|
||||
# @raise LightStep::ConfigurationError if the group name or access token is not a valid string.
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module LightStep
|
||||
VERSION = '0.16.0'.freeze
|
||||
VERSION = '0.15.0'.freeze
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче