* Reset version

The publish process will bump the version for us

* Temporarily remove B3 propagator option
This commit is contained in:
Matthew Wear 2019-11-06 16:37:32 -08:00 коммит произвёл GitHub
Родитель 88b4facd20
Коммит 7fc80df4f3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 10 добавлений и 11 удалений

Просмотреть файл

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