Skip to content

opentelemetry-beam/opentelemetry_hackney

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenTelemetry Hackney

Use the same as you would Hackney but with module otel_hackney instead of hackney:

{ok, 200, _, _} = otel_hackney:request("http://localhost:3000")

The default Span name used in the above example will be HTTP GET. You can pass a custom Span name or a function that is passed the HTTP method and the full url of the request and returns a Span name:

SpanNameFun = fun(_Method, _Url) -> <<"/hello/{who}">> end,
{ok, 200, _, _} = otel_hackney:request(get, "http://localhost:3000/hello/otel", [],
                                       <<>>, [{span_name, SpanNameFun}])

About

OpenTelemetry inustrmentation wrapper for Hackney

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages