4f04e9e1b5
* add metrics to host apps * merge fixes and compiles * Use ME.Console and OTel for logging to correlate * clean up * clean up for metrics * fix self-review comments * fix seq initialization * clean up for http traces and rhino 8 * use latest SDK * formatting
16 lines
373 B
C#
16 lines
373 B
C#
using System.Diagnostics;
|
|
using OpenTelemetry;
|
|
|
|
namespace Speckle.Connectors.Logging;
|
|
|
|
internal sealed class ActivityScopeActivityProcessor : BaseProcessor<Activity>
|
|
{
|
|
public override void OnEnd(Activity data)
|
|
{
|
|
foreach (KeyValuePair<string, object?> keyValuePair in ActivityScope.Tags)
|
|
{
|
|
data.SetTag(keyValuePair.Key, keyValuePair.Value);
|
|
}
|
|
}
|
|
}
|