Граф коммитов

207 Коммитов

Автор SHA1 Сообщение Дата
Ben Sigelman 6dec9818a0 v0.10.5 2017-01-10 21:57:38 -08:00
Ben Sigelman 5213f85f39 Don't bother with dropped logs, either 2017-01-10 21:54:48 -08:00
Ben Sigelman 532ce74187 v0.10.4 2017-01-10 21:47:14 -08:00
Ben Sigelman aae90b57bd Fix dropped span counts 2017-01-10 21:28:11 -08:00
Adam Roben 75a6d2c516 Ensure span names are always strings
The collector will reject any report that contains a non-string span
name, so now we convert span names to strings via #to_s. This matches
what we do with tag values.
2016-12-22 10:12:56 -05:00
Ben Sigelman 8d0c9ccf09 v0.10.3 2016-12-14 07:18:41 -08:00
Adam Roben 46f16eb054 Use `unless` instead of `if not`
This is a little more idiomatic.
2016-12-14 09:39:29 -05:00
Adam Roben 43414d38f8 Use Process.pid instead of $$
This is a bit clearer, and I think makes the comment for this block
unnecessary.
2016-12-14 09:39:00 -05:00
Adam Roben ea18979b1f Remove redundant Random.new call on first LightStep.guid call
The @_lastpid block will handle initializing @_rng the first time
through as well.
2016-12-14 09:38:16 -05:00
Adam Roben 0f69a3c0fd Don't reseed the PRNG on every LightStep.guid call
`@_lastpid ||= $$` will evaluate to true every time.
2016-12-14 09:37:24 -05:00
Ben Sigelman 19e268bf59 v0.10.2 2016-12-13 12:59:37 -08:00
Ben Sigelman 7473135083 Re-seed the guid PRNG when the PID changes
Otherwise we generate the same sequence of guids in both forks of a
process
2016-12-13 12:55:54 -08:00
bcronin 632b1dc9fd v0.10.1 2016-11-22 11:29:02 -08:00
bcronin 86e07eed93 Bump minor version 2016-11-22 11:28:39 -08:00
bcronin bc1610808e v0.9.10 2016-11-22 11:26:45 -08:00
Nick Gauthier 6c880e87e6 allow user to provide tracer-level tags 2016-11-22 12:32:11 -05:00
bhs c380bf718b Merge pull request #36 from lightstep/ngauthier/rack-http-inject-extract
Rack HTTP Inject + Extract
2016-11-16 20:30:54 -08:00
Nick Gauthier 036ebaa9c7 move benchmark into client and update it 2016-11-15 14:04:37 -05:00
Nick Gauthier d1f99c7f7f allowe mixed case and underscores in rack inject 2016-11-14 13:11:47 -05:00
Nick Gauthier 430b03c333 change to rack-specific format 2016-11-14 13:09:18 -05:00
Nick Gauthier 9a443e4792 drop baggage keys that can't be used as http headers during extract
additional tests cases around case and underscores
2016-11-11 14:45:58 -05:00
Nick Gauthier 78fe4eb7c5 always convert tag values to strings 2016-11-11 10:22:44 -05:00
Nick Gauthier 4b9169f751 use -s in http headers and ignore case 2016-11-10 14:32:23 -05:00
Nick Gauthier d98f2f5f2e Merge remote-tracking branch 'origin/master' into ngauthier/rack-http-inject-extract 2016-11-10 14:19:58 -05:00
Nick Gauthier 718585e2f3 remove forwardable from span 2016-11-10 12:19:34 -05:00
Nick Gauthier 69e4a9dcba no spancontext delegation 2016-11-10 12:18:40 -05:00
Nick Gauthier 492c0eaa5b inject and extract for http requests and rack requests 2016-11-10 10:28:41 -05:00
Nick Gauthier e7b3e1b3a5 extract SpanContext from span
* rename Span#guid -> Span#id
* rename Span#trace_guid -> Span#trace_guid
* delegate id, trace_id, baggage to SpanContext
* Freeze SpanContext data to prevent modification
* Copy SpanContext when modifying baggage
* Provide faster Span#set_baggage to bulk set baggage on initialization
* Spans inherit SpanContext fields
2016-11-07 13:34:50 -05:00
Ben Sigelman 50c33fa06b v0.9.9 2016-11-04 15:02:45 -07:00
Nick Gauthier a577414ef0 remove at_exit flush and add explicit flush to examples 2016-11-04 17:56:44 -04:00
Nick Gauthier c2db02bdbc remove puts 2016-11-04 17:38:42 -04:00
Nick Gauthier 86889be239 comment 2016-11-04 17:29:08 -04:00
Nick Gauthier db7c17dd3c simple reporting loop 2016-11-04 17:28:02 -04:00
Ben Sigelman b8029b1107 v0.9.8 2016-11-04 11:43:10 -07:00
Ben Sigelman 444e2e73cf Allow writes to the Span.operation_name attribute 2016-11-04 11:39:44 -07:00
Ben Sigelman 2d063cc0a0 v0.9.7 2016-11-04 09:30:31 -07:00
bhs 1473599b5b Merge pull request #31 from lightstep/bhs/tags_on_start
Fix tag-setting at start_span time
2016-11-04 09:29:57 -07:00
Ben Sigelman 8eff36dabd Fix tag-setting at start_span time 2016-11-04 09:26:36 -07:00
Adam Roben c4e8dd32a5 Set a non-nil runtime guid in submitted reports
Tracer#guid was never getting set. This broke in
26ae4f094d.

In addition, Reporter's @guid ivar was unused, so I removed it.
2016-11-04 11:58:56 -04:00
bcronin 6e29358e98 v0.9.6 2016-11-03 14:43:08 -07:00
bcronin 6a3971c979 v0.9.5 2016-11-03 14:40:49 -07:00
bcronin 20a27e488a v0.9.4 2016-11-03 14:38:07 -07:00
Nick Gauthier 2a2c70d094 channel-signal based fork-safe implementation of reporter 2016-11-03 16:55:53 -04:00
Nick Gauthier 656daf4b0c synchronous flushing to prepare for single backgrounding 2016-11-02 17:29:48 -04:00
Nick Gauthier 26ae4f094d extract reporting class 2016-11-02 14:19:43 -04:00
Nick Gauthier 71711c01bc rename flush period to reporting period for clarity and consistency 2016-11-02 13:03:36 -04:00
Nick Gauthier 0250356066 remove unused reporting period settings 2016-11-02 13:01:47 -04:00
Ben Sigelman e7700c2456 v0.9.3 2016-11-02 08:40:44 -07:00
Adam Roben 010fc245ff Don't reenable the tracer when calling #enabled?
This fixes the tests added in the previous commit.
2016-11-02 11:18:26 -04:00
Ben Sigelman 697e753623 v0.9.2 2016-11-01 07:30:54 -07:00
Ben Sigelman 90ff34f308 v0.9.1 2016-10-31 21:39:05 -07:00
Nick Gauthier b7e59be826 privacy pass 2016-10-31 18:45:40 -04:00
Nick Gauthier da22d038e6 logs on spans 2016-10-31 18:35:23 -04:00
Nick Gauthier 83680ccff3 use concurrent ruby for sliding span buffer 2016-10-31 17:20:07 -04:00
Nick Gauthier 4c343203c9 extract guid 2016-10-31 15:52:48 -04:00
Nick Gauthier c122f59a5c extract micros 2016-10-31 15:33:55 -04:00
Nick Gauthier a85bad5ef1 remover tracer stutter and fix runtime attributes 2016-10-31 15:25:54 -04:00
Nick Gauthier 16db17890c KV logging refactor (before span logging) 2016-10-31 15:10:28 -04:00
Nick Gauthier fe9bcea46d encryption type instead of secure bit 2016-10-31 13:59:22 -04:00
Nick Gauthier bb73bd7fd3 convert tag value to string instead of exception 2016-10-31 13:56:28 -04:00
Nick Gauthier 5480799df0 baggage and tags concurrent 2016-10-31 13:50:05 -04:00
Nick Gauthier 38fd69ba39 rename gem and bump to version 0.9.0 2016-10-31 13:38:31 -04:00
Nick Gauthier 4748d8f274 documentation 2016-10-28 17:09:47 -04:00
Nick Gauthier 5e438a1cd2 rubocop -a 2016-10-28 16:27:50 -04:00
Nick Gauthier 211b57a8b5 thread safety for logs, spans, and counters 2016-10-28 16:15:53 -04:00
Nick Gauthier 29cdc1ce15 nonblocking queue push and rescue and drop when full 2016-10-28 15:46:38 -04:00
Nick Gauthier c93e69a7f1 todos 2016-10-28 15:37:23 -04:00
Nick Gauthier 2ff3aaf4e4 rename join to extract 2016-10-28 14:51:14 -04:00
Nick Gauthier 5fbc707278 baggage key TODO 2016-10-28 14:42:16 -04:00
Nick Gauthier 1b749e0265 only set end_time on finish, not start 2016-10-28 14:31:23 -04:00
Nick Gauthier bf6324aabe span constructor and attributes according to spec 2016-10-28 14:22:43 -04:00
Nick Gauthier 196ce7f58d actually send tag value naturally 2016-10-28 12:38:19 -04:00
Nick Gauthier 61ecd37be8 Span#set_tag only supports string, bool, number 2016-10-28 12:35:20 -04:00
Nick Gauthier 651e95c57f remove todo 2016-10-28 12:21:13 -04:00
Nick Gauthier e0c427d4ab blocking flush on tracer disable so it can be used safely for pre-fork
also explanation of forking safety on HTTPJSON
2016-10-28 11:57:51 -04:00
Nick Gauthier 42a4d777b6 flush, clear, close, and cleaner threading in HTTPJSON 2016-10-28 11:45:10 -04:00
Nick Gauthier 3f34e39eac fix span name and other attributes 2016-10-28 11:07:32 -04:00
Nick Gauthier d4e010d87b span todos 2016-10-27 16:47:58 -04:00
Nick Gauthier 17c6eabe72 final pass through tracer 2016-10-27 16:27:17 -04:00
Nick Gauthier 34d46a848b delegate to instance 2016-10-27 16:13:14 -04:00
Nick Gauthier ba844c708c simplify transport configuration 2016-10-27 14:53:12 -04:00
Nick Gauthier 13b425b4e5 extracted lesser used configs as accessors 2016-10-27 14:13:03 -04:00
Nick Gauthier 068f1b3b45 first pass at configuration 2016-10-27 13:41:00 -04:00
Nick Gauthier 61564ba26e move, rename, and namespace transports 2016-10-27 11:57:16 -04:00
Nick Gauthier 04e4a18a43 rename span file 2016-10-27 11:52:34 -04:00
Nick Gauthier d45763ca26 namespace span 2016-10-27 11:51:36 -04:00
Nick Gauthier 34711bde41 namespace tracer, rename files, global tracer singleton, extract tracer configuration 2016-10-27 11:46:04 -04:00
Nick Gauthier abce9a8510 Lightstep -> LightStep. Merge contstants. 2016-10-27 10:11:48 -04:00
Nick Gauthier 677f786972 remove util 2016-10-27 09:57:20 -04:00
Nick Gauthier b616c3956f spec notes 2016-10-27 09:17:14 -04:00
Nick Gauthier 9bfc5117de clean up requires 2016-10-26 16:18:14 -04:00
Nick Gauthier f082c17f67 remove thrift in favor of hashes with typecasting 2016-10-26 16:10:20 -04:00
Nick Gauthier 7a90a91b8d top level hash replacement 2016-10-26 15:46:31 -04:00
Nick Gauthier 56493ea95e a few comments and rspec initialization 2016-10-26 14:06:38 -04:00
Nick Gauthier f76c0fdb74 notes on everything not thrifty 2016-10-26 10:54:02 -04:00
bcronin a27efdaccd v0.8.14 2016-08-07 18:33:10 -07:00
bcronin bbedba3810 Allow end time to be specified on finish 2016-08-07 18:30:07 -07:00
bcronin 70e3bf33b3 v0.8.13 2016-08-07 17:55:52 -07:00
bcronin 424c89c1d8 Add support for explicit end time on spans 2016-08-07 17:52:39 -07:00
bcronin 892f5b62ce v0.8.12 2016-06-13 18:41:02 -07:00