Logging Support is being added to hs-opentelemetry. Logging spec
Small (This PR) Context
To comply with the spec, LogRecord must have a field instrumentationScope. Logger provides this field to LogRecords. This PR updates the codebase to match that spec. The InstrumentationLibrary data type was also updated to include schema_url and attributes. The haddock documentation about how to initialize an instrumentationLibrary has not yet been updated because I am unsure about how adding fields to instrumentationScope will affect things and whether it is necessary to add the fields.
Testing
stack build runs
I am not sure how adding fields to instrumentationScope will affect things but it should maybe be tested
Big Context
Logging Support is being added to hs-opentelemetry. Logging spec
Small (This PR) Context
To comply with the spec,
LogRecord
must have a fieldinstrumentationScope
.Logger
provides this field toLogRecord
s. This PR updates the codebase to match that spec. TheInstrumentationLibrary
data type was also updated to includeschema_url
andattributes
. The haddock documentation about how to initialize aninstrumentationLibrary
has not yet been updated because I am unsure about how adding fields toinstrumentationScope
will affect things and whether it is necessary to add the fields.Testing
stack build
runsinstrumentationScope
will affect things but it should maybe be tested