-
Notifications
You must be signed in to change notification settings - Fork 403
Expand file tree
/
Copy pathIOtelInstrumentation.cs
More file actions
43 lines (39 loc) · 1.39 KB
/
IOtelInstrumentation.cs
File metadata and controls
43 lines (39 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using Microsoft.Identity.Client.Cache;
using Microsoft.Identity.Client.Core;
using Microsoft.Identity.Client.TelemetryCore.Internal.Events;
namespace Microsoft.Identity.Client.TelemetryCore.OpenTelemetry
{
internal interface IOtelInstrumentation
{
internal void LogSuccessMetrics(
string platform,
ApiEvent.ApiIds apiId,
string callerSdkId,
string callerSdkVersion,
CacheLevel cacheLevel,
long totalDurationInUs,
AuthenticationResultMetadata authResultMetadata,
ILoggerAdapter logger,
DateTimeOffset expiresOn);
internal void IncrementSuccessCounter(string platform,
ApiEvent.ApiIds apiId,
string callerSdkId,
string callerSdkVersion,
TokenSource tokenSource,
CacheRefreshReason cacheRefreshReason,
CacheLevel cacheLevel,
ILoggerAdapter logger,
int TokenType);
internal void LogFailureMetrics(string platform,
string errorCode,
ApiEvent.ApiIds apiId,
string callerSdkId,
string callerSdkVersion,
CacheRefreshReason cacheRefreshReason,
int tokenType);
}
}