a37354cb18
fix: message formatting errors in GELF exporter
...
The library used to transport GELF messages did not prefix extra fields
with `_` as was previously assumed and the application name was not
passed correctly from configuration to the exporter. Now fixed.
Related: goc_marek/salego#693
2024-09-25 11:23:06 +02:00
0f866a0ded
fix: attributes incorrectly added as extra fields in gelf
2024-09-24 16:24:19 +02:00
4654238920
feat: add attributes from resource to gelf exports
2024-09-24 16:05:58 +02:00
019de457c9
feat: allow providing arbitrary extra attributes to fiber_tracing middleware resource
2024-09-24 15:59:57 +02:00
9a1b41b1ad
feat: new helpers and masking/encrypting attributes
...
New helper functions were added to make call-site less likely to need
to pull `go.opentelemetry.io/otel/attribute` as a dependency.
Additionally `Encrypted` and `Masked` were added to add a possibility of
logging sensitive data in a more secure manner.
2024-09-13 15:48:16 +02:00
2004e1b2f5
feat: add a new single-line formatter for console_exporter
...
Closes #7
2024-09-10 15:53:36 +02:00
dc4d3942f5
feat: add gorm tracing middleware
2024-07-24 17:17:13 +02:00
9971ef17cb
feat: add trace context propagation to http headers
...
Trace context should now be propagated correctly in headers of requests
and responses touched by the fiber_tracing middleware. This should enable
true distributed tracing between multiple services.
2024-07-24 15:19:51 +02:00
fc38f26e1f
fix: numbers invisible in console exporter output
...
closes #5
2024-06-25 15:26:25 +02:00
225620da48
feat: enable filtering console output by severity level
2024-06-04 13:04:11 +02:00
a2b61ea706
do not Printf GELF messages when logging
2024-06-04 11:59:28 +02:00
3024e888c7
adjust tracing middleware for practical use
2024-05-27 07:37:54 +02:00
d7b45a1439
copy code and remove dependency on fiber-otel
2024-05-21 07:54:22 +02:00
7dd3dc70d5
make span names more generic by using Route().Path instead of Path
2024-05-20 20:06:50 +02:00
031177f30c
fix spans in UserContext() not connected properly to span from fiber.Ctx
2024-05-20 19:35:21 +02:00
86e9128c68
add db.execution_time_ms
2024-05-20 17:29:00 +02:00
16dbdeec3e
alias KeyValue to make users slightly more independent from otel
2024-05-20 17:23:06 +02:00
265731010e
set error status based on severity level of an error
2024-05-20 13:55:53 +02:00
f5819972a4
allow skipping callstack in errors and events
2024-05-20 13:39:55 +02:00
c70a285e70
fix panic on missing formatter in console_exporter.ProcessorOptions
2024-05-20 12:18:03 +02:00
d119563c7d
connect contexts managed by fiber middleware to join at c.UserContext()
2024-05-20 11:45:27 +02:00
372f4367ed
allow retrieving spans from fiber.Ctx
2024-05-20 11:04:36 +02:00
77ab12c3ac
move repository and module imports to new location
2024-05-20 08:20:13 +02:00
076196c03e
added event wrappers, bug fixes, API improvements
2024-05-17 18:21:09 +02:00
4f4a7e09c5
cleanup unused and add short message to GELF
2024-05-17 15:46:25 +02:00
d4dc790298
rename ExporterWithConfig to be less confusing and closer to otel
2024-05-17 15:36:35 +02:00
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
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
e9c3ae1a7b
reorganize exporters and simplify their use
2024-05-17 10:37:05 +02:00
fc92995cc8
start reworking exporters to be more composable
2024-05-16 18:19:36 +02:00
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
6fb12e9e9d
making executing reqs against example binary easier
2024-05-15 15:51:24 +02:00
f64eac90a1
add a justfile for convenience
2024-05-15 15:49:44 +02:00
992fcb7940
fix invalid span name
2024-05-13 13:36:45 +02:00
be03e0ce42
update go mod
2024-04-30 14:42:05 +02:00
0add3425bd
sync
2024-04-30 14:22:09 +02:00
c194967b33
sync
2024-04-30 12:41:05 +02:00
7a6882c09a
initial commit
2024-04-26 15:09:54 +02:00