18 lines
397 B
C#
18 lines
397 B
C#
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
using OpenTelemetry.Resources;
|
|
|
|
internal class MyResourceDetector : IResourceDetector
|
|
{
|
|
public Resource Detect()
|
|
{
|
|
var attributes = new List<KeyValuePair<string, object>>
|
|
{
|
|
new KeyValuePair<string, object>("key", "val"),
|
|
};
|
|
|
|
return new Resource(attributes);
|
|
}
|
|
}
|