Commit Graph

27 Commits

Author SHA1 Message Date
goc_natalia 3024e888c7 adjust tracing middleware for practical use 2024-05-27 07:37:54 +02:00
goc_natalia d7b45a1439 copy code and remove dependency on fiber-otel 2024-05-21 07:54:22 +02:00
goc_natalia 7dd3dc70d5 make span names more generic by using Route().Path instead of Path 2024-05-20 20:06:50 +02:00
goc_natalia 031177f30c fix spans in UserContext() not connected properly to span from fiber.Ctx 2024-05-20 19:35:21 +02:00
goc_natalia 86e9128c68 add db.execution_time_ms 2024-05-20 17:29:00 +02:00
goc_natalia 16dbdeec3e alias KeyValue to make users slightly more independent from otel 2024-05-20 17:23:06 +02:00
goc_natalia 265731010e set error status based on severity level of an error 2024-05-20 13:55:53 +02:00
goc_natalia f5819972a4 allow skipping callstack in errors and events 2024-05-20 13:39:55 +02:00
goc_natalia c70a285e70 fix panic on missing formatter in console_exporter.ProcessorOptions 2024-05-20 12:18:03 +02:00
goc_natalia d119563c7d connect contexts managed by fiber middleware to join at c.UserContext() 2024-05-20 11:45:27 +02:00
goc_natalia 372f4367ed allow retrieving spans from fiber.Ctx 2024-05-20 11:04:36 +02:00
goc_natalia 77ab12c3ac move repository and module imports to new location 2024-05-20 08:20:13 +02:00
goc_natalia 076196c03e added event wrappers, bug fixes, API improvements 2024-05-17 18:21:09 +02:00
goc_natalia 4f4a7e09c5 cleanup unused and add short message to GELF 2024-05-17 15:46:25 +02:00
goc_natalia d4dc790298 rename ExporterWithConfig to be less confusing and closer to otel 2024-05-17 15:36:35 +02:00
goc_natalia 3c51f5575b plenty of changes to make the package more ergonomic
Including: bug fixes, api changes, new packages, and more!
2024-05-17 15:31:35 +02:00
goc_natalia e835318689 fix incorrect API usage in the example
`attr.SourceCodeLocation` already adds to callstack search depth to match
its call site.
2024-05-17 10:39:32 +02:00
goc_natalia e9c3ae1a7b reorganize exporters and simplify their use 2024-05-17 10:37:05 +02:00
goc_natalia fc92995cc8 start reworking exporters to be more composable 2024-05-16 18:19:36 +02:00
goc_natalia ab5b70704d standardize commonly used attributes
Some commonly used at maal attributes have been encoded as consts with
convinience wrappers similar to those of semconv package from otel sdk.
Additionally some utils that can generate mutliple attributes were added.
2024-05-16 13:45:13 +02:00
goc_natalia 6fb12e9e9d making executing reqs against example binary easier 2024-05-15 15:51:24 +02:00
goc_natalia f64eac90a1 add a justfile for convenience 2024-05-15 15:49:44 +02:00
gora_filip 992fcb7940 fix invalid span name 2024-05-13 13:36:45 +02:00
gora_filip be03e0ce42 update go mod 2024-04-30 14:42:05 +02:00
gora_filip 0add3425bd sync 2024-04-30 14:22:09 +02:00
gora_filip c194967b33 sync 2024-04-30 12:41:05 +02:00
gora_filip 7a6882c09a initial commit 2024-04-26 15:09:54 +02:00