-
Notifications
You must be signed in to change notification settings - Fork 292
java v2: client wrapper instrumentation #7638
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
base: main
Are you sure you want to change the base?
Conversation
No changes needing a change description found. |
You can try these changes here
|
...n/java/com/microsoft/typespec/http/client/generator/core/model/clientmodel/ClientMethod.java
Outdated
Show resolved
Hide resolved
...nerator/http-client-generator-clientcore-test/src/main/java/encode/bytes/PropertyClient.java
Outdated
Show resolved
Hide resolved
.../http-client-generator-clientcore-test/src/main/java/authentication/apikey/ApiKeyClient.java
Outdated
Show resolved
Hide resolved
...lient-generator-clientcore-test/src/main/java/authentication/apikey/ApiKeyClientBuilder.java
Outdated
Show resolved
Hide resolved
...com/microsoft/typespec/http/client/generator/core/template/ServiceClientBuilderTemplate.java
Outdated
Show resolved
Hide resolved
...com/microsoft/typespec/http/client/generator/core/template/ServiceClientBuilderTemplate.java
Outdated
Show resolved
Hide resolved
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.
LGTM
...generator/http-client-generator-clientcore-test/src/main/java/encode/bytes/HeaderClient.java
Outdated
Show resolved
Hide resolved
HttpInstrumentationOptions localHttpInstrumentationOptions = this.httpInstrumentationOptions == null | ||
? new HttpInstrumentationOptions() | ||
: this.httpInstrumentationOptions; | ||
SdkInstrumentationOptions sdkInstrumentationOptions | ||
= new SdkInstrumentationOptions(PROPERTIES.getOrDefault(SDK_NAME, "UnknownName")) | ||
.setSdkVersion(PROPERTIES.get(SDK_VERSION)) | ||
.setEndpoint(this.endpoint != null ? this.endpoint : "http://localhost:3000"); | ||
Instrumentation instrumentation | ||
= Instrumentation.create(localHttpInstrumentationOptions, sdkInstrumentationOptions); |
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.
Should we consider moving this to buildInnerClient
method? This will help when we introduce a buildAsyncClient
in the future and also avoid having to duplicate the endpoint value in both places.
Corresponding storage changes: Azure/azure-sdk-for-java#45902