-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency data in DependencyMeasurement
is not always used
#279
Comments
In almost all cases, there is already something passed-along to the dependency data (the table name, in case of Azure Table Storage, for example), which raises the question if we should have a dependency data in the measurement after all... public static void LogEventHubsDependency(
this ILogger logger,
string namespaceName,
string eventHubName,
bool isSuccessful,
DateTimeOffset startTime,
TimeSpan duration,
Dictionary<string, object> context = null)
{
logger.LogWarning(DependencyFormat, new DependencyLogEntry(
dependencyType: "Azure Event Hubs",
dependencyName: eventHubName,
dependencyData: namespaceName, // <-- already assigned.
targetName: eventHubName,
duration: duration,
startTime: startTime,
resultCode: null,
isSuccessful: isSuccessful,
context: context));
} |
Actually, I do not see why you want to add additional dependency - data to the measurement. On the other hand, is it necessary to remove this right now ? |
Reusability comes to mind. If you want to track several dependencies with the same data. I would want to do this change before the release bc otherwise we end up with |
True. So, how do we agree on this ? |
Yes, I think that would be good. It would take a bit of work to mark all those signatures obsolete and create new ones. But yeah, that would be good to do this. 👍 |
Describe the bug
When tracking an dependency, you can use the
DependencyMeasurement
tracking model. This contains a way of specifying a dependency data value, but this value doesn't always corresponds with the dependency data of Application Insights.To Reproduce
Assign dependency data via the
DependencyMeasurement
tracking model (DependencyMeasurement.Start(dependencyData: "Process"
) and look for the dependency data upon logging.Expected behavior
Passed-allong dependency data matches.
Additional context
Add any other context about the problem here.
master
.The text was updated successfully, but these errors were encountered: