-
Notifications
You must be signed in to change notification settings - Fork 287
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
feature request: Make *OperationDetailName from RemoteDependencyConstants public #1326
Comments
@OskarKlintrot We are in the process of merging repos. Issues from other repos will be migrated to this repo. |
@cijothomas I saw that #1350 is up-for-grabs so I guess this one is as well? Should |
https://github.com/microsoft/ApplicationInsights-dotnet/blob/master/WEB/Src/DependencyCollector/DependencyCollector/Implementation/RemoteDependencyConstants.cs#L23-L27 |
That's the ones I personally use today and they seem to be what they want in #1350 as well. Should I/we/someone only move those and leave the rest as-is? |
yes. |
Great! If no one beats me to it, I will give it a shot as soon as I can build the project! |
This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Are there any plans to implement this? |
This is Up For Grabs as far as I know. I tried to give it a shot but never managed to build the solution so never really got started. Feel free to give it a try if you want! |
@cijothomas I think it would be a good idea not to have the same name for the internal class and the public one. It got a bit weird having two public static class RemoteDependencyConstants
{
internal const string SQL = "SQL";
internal const string HTTP = "Http";
internal const string AI = "Http (tracked component)";
internal const string AzureBlob = "Azure blob";
internal const string AzureTable = "Azure table";
internal const string AzureQueue = "Azure queue";
internal const string AzureDocumentDb = "Azure DocumentDB";
internal const string AzureEventHubs = "Azure Event Hubs";
internal const string AzureServiceBus = "Azure Service Bus";
internal const string AzureIotHub = "Azure IoT Hub";
internal const string AzureSearch = "Azure Search";
internal const string InProc = "InProc";
internal const string QueueMessage = "Queue Message";
internal const string WcfService = "WCF Service";
internal const string WebService = "Web Service";
public const string HttpRequestOperationDetailName = "HttpRequest";
public const string HttpResponseOperationDetailName = "HttpResponse";
public const string HttpResponseHeadersOperationDetailName = "HttpResponseHeaders";
public const string SqlCommandOperationDetailName = "SqlCommand";
internal const string DependencyErrorPropertyKey = "Error";
} |
Separating them into different classes made more sense IMHO. I didn't notice that the one to move out and make public all had to do with operation details. I opened the issue 2019, had to refresh my memory a bit :) |
Closed via #2524 |
@OskarKlintrot but that PR only makes part of |
That's true, what do you say @cijothomas, would it be possible to make the dependency types public as well? I think that's pretty much the rest of the properties except "error". Personally I only use |
@OskarKlintrot Yes, I use dependency types. Not only |
I opened a new issue now @older since my description here didn't really have much to do with the title, sorry for the confusion. We'll see what they say about it, I think I can manage to open a PR if they agree with us :) |
It would be helpful to be able to use
RemoteDependencyConstants
together withTryGetOperationDetail
instead of just using strings (dependency.TryGetOperationDetail(RemoteDependencyConstants.HttpResponseOperationDetailName, out var responseObject)
instead ofdependency.TryGetOperationDetail("HttpResponse", out var responseObject)
). There is some, IMHO, great suggestions here to makeTryGetOperationDetail
easier to use but that repo is archived now.The text was updated successfully, but these errors were encountered: