-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use OperationTracingOptions from core-tracing #8389
Conversation
@bterlson, @xirzec, @jeremymeng, @daviwil Any of you recall why we chose to have tracing options re-defined in identity and the storage libraries? Also, if we are ok with this approach, then this change should go in before #7998. If nothing, it will decrease the number of files being touched in #7998 |
237765d
to
2c5f8b6
Compare
If I recall correctly, it's because we never exported type OperationTracingOptions = OperationOptions["tracingOptions"]; But I didn't go back and fix this everywhere.
I am good with this change, I think it makes sense to define the interface in core-tracing. I would also like to have us fix the goofiness of |
@@ -96,7 +96,7 @@ export interface AccountSASSignatureValues { | |||
} | |||
|
|||
// @public | |||
export class AnonymousCredential extends Credential { | |||
export class AnonymousCredential extends Credential_2 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a bit strange? Was this there before your change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a problem with the latest version of the api extractor. Once #8400 is merged, I'll update this PR and these changes should go away. I manually updated the .md files, looks like I missed datalake :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 045ba66
@richardpark-msft Can you review the Event Hubs and the Service Bus side of things here? |
@@ -19,13 +19,6 @@ export interface CommonOptions { | |||
tracingOptions?: OperationTracingOptions; | |||
} | |||
|
|||
export interface OperationTracingOptions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to re-export it here so it's not a breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not here, re-export from index
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never mind, I added the export earlier this month in index.ts so it hasn't been released yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storage changes Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, nothing major. Looks okay from SB and EH side.
@@ -10,7 +10,7 @@ import { PartitionProcessor } from "./partitionProcessor"; | |||
import { EventHubConsumer } from "./receiver"; | |||
import { AbortController } from "@azure/abort-controller"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we're not using abortSignal here. Can we narrow the type down to the field you want?
Pick<OperationOptions, 'tracingOptions'> // or something of that nature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I used the vscode extension and it put the comment at the top. I'm talking about the createProcessingSpan()
signature change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean createProcessingSpan()
doesnt need abort signal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logged #8407 for a follow up that will cover the above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API changes look good, +1 for this change too, will be nice to have core-tracing as the source of truth here.
The interface
OperationTracingOptions
is being defined in multiple places where as we should have a single source of truth.This PR makes it such that we define the interface in
@azure/core-tracing
and use it from there.Note: This PR does not touch core-auth because it doesnt depend on
@azure/core-tracing
. Also because the problem with it is being tracked in #8301 where the solution is most probably going to be in-lining rather than re-using