Skip to content
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

Merging back Tracer PR without conditional check on withContext() #12867

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
089307a
initial commit
simplynaveen20 Apr 8, 2020
175222e
changing sample
simplynaveen20 Apr 8, 2020
fe03e66
adding query api tracer support
simplynaveen20 Apr 13, 2020
9f9cce8
merging with master
simplynaveen20 Apr 14, 2020
e2e8e9e
reverting change for jaeger ui local testing
simplynaveen20 Apr 14, 2020
c2fc40f
adding tracers in trigger udf and sproc
simplynaveen20 Apr 15, 2020
eb82b61
Merge branch 'latest-master' into users/nakumars/tracercosmosdb
simplynaveen20 Apr 21, 2020
e614db5
adding test case and refactoring code
simplynaveen20 Apr 21, 2020
c4ae21b
Merge branch 'latest-master' into users/nakumars/tracercosmosdb
simplynaveen20 Apr 24, 2020
eabbec9
refactoring code with PR ready version
simplynaveen20 Apr 24, 2020
36dde95
ending span on doOnComplete
simplynaveen20 Apr 24, 2020
36743ca
resolving error
simplynaveen20 May 4, 2020
cff33ad
merging with master
simplynaveen20 May 4, 2020
8ca24ec
perf improvement
simplynaveen20 May 5, 2020
21034b5
resolving merge conflict
simplynaveen20 May 6, 2020
1f9f139
fixing build error
simplynaveen20 May 6, 2020
aab85a6
resolving merge conflict
simplynaveen20 May 11, 2020
d14a0bb
resolving merge conflict
simplynaveen20 May 11, 2020
8fbad2c
check non opentelementry jar non existence in starting of all api
simplynaveen20 May 11, 2020
6b09e5c
fixing checkstyle
simplynaveen20 May 11, 2020
81040b2
resolving comments
simplynaveen20 May 11, 2020
dbc74c8
Merge branch 'latest-master' into users/nakumars/tracercosmosdb
simplynaveen20 May 11, 2020
806cdf1
check style fix as per java 8
simplynaveen20 May 11, 2020
d061db5
adding azure-core-tracing-opentelemetry in test scope
simplynaveen20 May 11, 2020
32d9172
resolving conflict
simplynaveen20 May 11, 2020
0fc0cc9
build error fix
simplynaveen20 May 11, 2020
1290ae1
test failure fix
simplynaveen20 May 12, 2020
d2a8154
test fix
simplynaveen20 May 12, 2020
30c2f89
resolving comments
simplynaveen20 May 13, 2020
e7fa831
complie error fix
simplynaveen20 May 13, 2020
3aa851d
removing query text from tracer
simplynaveen20 May 15, 2020
0debac0
resolving merge conflict
simplynaveen20 May 15, 2020
8efa451
merge with master and removing subscriber context for perf gain
simplynaveen20 May 26, 2020
e7fe8bb
resolving merge conflict
simplynaveen20 May 26, 2020
3461604
resolving merge conflict after GA
simplynaveen20 Jun 11, 2020
0984a9c
code formating change and some comment resolution
simplynaveen20 Jun 11, 2020
b9c60a2
resolving comments
simplynaveen20 Jun 11, 2020
aaabc72
moving AZ_TRACING_NAMESPACE_KEY to context from span attribute
simplynaveen20 Jun 15, 2020
8024999
updating core opentelementry jar
simplynaveen20 Jun 15, 2020
2101851
Merge branch 'latest-master' into users/nakumars/tracercosmosdb
simplynaveen20 Jul 6, 2020
1f4c6ac
Tracer code without conditional check for withContext
simplynaveen20 Jul 7, 2020
1b0becb
Merge branch 'latest-master' into users/nakumars/tracercosmosdb
simplynaveen20 Jul 7, 2020
3548215
formating chage
simplynaveen20 Jul 7, 2020
eb398d9
formating chage
simplynaveen20 Jul 7, 2020
b168fd2
Merge branch 'latest-master' into users/nakumars/tracercosmosdb
simplynaveen20 Jul 9, 2020
9c1d31f
resolving comments
simplynaveen20 Jul 9, 2020
0703a28
build error fix
simplynaveen20 Jul 9, 2020
c5283fe
Merge branch 'latest-master' into users/nakumars/tracercosmosdb
simplynaveen20 Jul 9, 2020
deb6978
resolving comment
simplynaveen20 Jul 10, 2020
8af1cc9
resolving comments
simplynaveen20 Jul 10, 2020
798839c
resolving comment
simplynaveen20 Jul 10, 2020
21c5743
resolving comment
simplynaveen20 Jul 10, 2020
42e9789
removing extra method
simplynaveen20 Jul 10, 2020
be8d7eb
removing tets dependency
simplynaveen20 Jul 10, 2020
1f9725c
adding span attribute unit test
simplynaveen20 Jul 13, 2020
fc1296f
resolving comments
simplynaveen20 Jul 13, 2020
0a7aab0
resolving comments
simplynaveen20 Jul 14, 2020
8292a83
resolving merge conflic and comments
simplynaveen20 Jul 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolving comments
  • Loading branch information
simplynaveen20 committed May 13, 2020
commit 30c2f8962f070e59790585b7abee6aa5e5a136a1
5 changes: 2 additions & 3 deletions sdk/cosmos/azure-cosmos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,16 @@ Licensed under the MIT License.

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-tracing-opentelemetry</artifactId>
<artifactId>azure-core-tracing-opentelemetry</artifactId> <!-- {x-version-update;com.azure:azure-core-tracing-opentelemetry;dependency} -->
<scope>test</scope>
<version>1.0.0-beta.4</version>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>*</artifactId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public Mono<CosmosAsyncDatabaseResponse> createDatabaseIfNotExists(CosmosDatabas
}

return withContext(context -> createDatabaseIfNotExistsInternal(getDatabase(databaseSettings.getId()),
context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -224,7 +224,7 @@ public Mono<CosmosAsyncDatabaseResponse> createDatabaseIfNotExists(String id) {
return createDatabaseIfNotExistsInternal(getDatabase(id));
}

return withContext(context -> createDatabaseIfNotExistsInternal(getDatabase(id), context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createDatabaseIfNotExistsInternal(getDatabase(id), context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -251,7 +251,7 @@ public Mono<CosmosAsyncDatabaseResponse> createDatabase(CosmosDatabaseProperties
}

final CosmosDatabaseRequestOptions requestOptions = options;
return withContext(context -> createDatabaseInternal(wrappedDatabase, requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createDatabaseInternal(wrappedDatabase, requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -312,7 +312,7 @@ public Mono<CosmosAsyncDatabaseResponse> createDatabase(CosmosDatabaseProperties


final CosmosDatabaseRequestOptions requestOptions = options;
return withContext(context -> createDatabaseInternal(wrappedDatabase, requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createDatabaseInternal(wrappedDatabase, requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -475,17 +475,7 @@ private CosmosPagedFlux<CosmosDatabaseProperties> queryDatabasesInternal(boolean
private Mono<CosmosAsyncDatabaseResponse> createDatabaseIfNotExistsInternal(CosmosAsyncDatabase database,
Context context) {
String spanName = "createDatabaseIfNotExists." + database.getId();
Mono<CosmosAsyncDatabaseResponse> responseMono = database.read().onErrorResume(exception -> {
final Throwable unwrappedException = Exceptions.unwrap(exception);
if (unwrappedException instanceof CosmosClientException) {
final CosmosClientException cosmosClientException = (CosmosClientException) unwrappedException;
if (cosmosClientException.getStatusCode() == HttpConstants.StatusCodes.NOTFOUND) {
return createDatabase(new CosmosDatabaseProperties(database.getId()),
new CosmosDatabaseRequestOptions());
}
}
return Mono.error(unwrappedException);
});
Mono<CosmosAsyncDatabaseResponse> responseMono = createDatabaseIfNotExistsInternal(database);
return tracerProvider.traceEnabledCosmosResponsePublisher(responseMono, context, spanName, database.getId(),
this.serviceEndpoint);
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Mono<CosmosAsyncDatabaseResponse> read(CosmosDatabaseRequestOptions optio
return readInternal(options);
}
final CosmosDatabaseRequestOptions requestOptions = options;
return withContext(context -> readInternal(requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> readInternal(requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -125,7 +125,7 @@ public Mono<CosmosAsyncDatabaseResponse> delete(CosmosDatabaseRequestOptions opt
}

final CosmosDatabaseRequestOptions requestOptions = options;
return withContext(context -> deleteInternal(requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> deleteInternal(requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/* CosmosAsyncContainer operations */
Expand Down Expand Up @@ -216,7 +216,7 @@ public Mono<CosmosAsyncContainerResponse> createContainer(
}

final CosmosContainerRequestOptions requestOptions = options;
return withContext(context -> createContainerInternal(containerProperties, requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createContainerInternal(containerProperties, requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}


Expand Down Expand Up @@ -302,7 +302,7 @@ public Mono<CosmosAsyncContainerResponse> createContainerIfNotExists(
}

return withContext(context -> createContainerIfNotExistsInternal(containerProperties, container, null,
context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -329,7 +329,7 @@ public Mono<CosmosAsyncContainerResponse> createContainerIfNotExists(
}

return withContext(context -> createContainerIfNotExistsInternal(containerProperties, container, options,
context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -352,7 +352,7 @@ public Mono<CosmosAsyncContainerResponse> createContainerIfNotExists(String id,
}

return withContext(context -> createContainerIfNotExistsInternal(new CosmosContainerProperties(id, partitionKeyPath), container, null,
context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -380,7 +380,7 @@ public Mono<CosmosAsyncContainerResponse> createContainerIfNotExists(
}

return withContext(context -> createContainerIfNotExistsInternal(new CosmosContainerProperties(id,
partitionKeyPath), container, options, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
partitionKeyPath), container, options, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -510,7 +510,7 @@ public Mono<CosmosAsyncUserResponse> createUser(CosmosUserProperties userPropert
if (!client.getTracerProvider().isEnabled()) {
return createUserInternal(userProperties);
}
return withContext(context -> createUserInternal(userProperties, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createUserInternal(userProperties, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}


Expand All @@ -530,7 +530,7 @@ public Mono<CosmosAsyncUserResponse> upsertUser(CosmosUserProperties userPropert
return upsertUserInternal(userProperties);
}

return withContext(context -> upsertUserInternal(userProperties, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> upsertUserInternal(userProperties, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -653,7 +653,7 @@ public Mono<Integer> readProvisionedThroughput() {
return readProvisionedThroughputInternal();
}

return withContext(context -> readProvisionedThroughputInternal(context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> readProvisionedThroughputInternal(context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -669,7 +669,7 @@ public Mono<Integer> replaceProvisionedThroughput(int requestUnitsPerSecond) {
return replaceProvisionedThroughputInternal(requestUnitsPerSecond);
}

return withContext(context -> replaceProvisionedThroughputInternal(requestUnitsPerSecond, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> replaceProvisionedThroughputInternal(requestUnitsPerSecond, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Mono<CosmosAsyncPermissionResponse> read(CosmosPermissionRequestOptions o
}

final CosmosPermissionRequestOptions requestOptions = options;
return withContext(context -> readInternal(requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> readInternal(requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -91,7 +91,7 @@ public Mono<CosmosAsyncPermissionResponse> replace(CosmosPermissionProperties pe
}

final CosmosPermissionRequestOptions requestOptions = options;
return withContext(context -> replaceInternal(permissionSettings, requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> replaceInternal(permissionSettings, requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -114,7 +114,7 @@ public Mono<CosmosAsyncPermissionResponse> delete(CosmosPermissionRequestOptions
}

final CosmosPermissionRequestOptions requestOptions = options;
return withContext(context -> deleteInternal(requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> deleteInternal(requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

String getURIPathSegment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Mono<CosmosAsyncStoredProcedureResponse> createStoredProcedure(
}

final CosmosStoredProcedureRequestOptions requestOptions = options;
return withContext(context -> createStoredProcedureInternal(sProc, requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createStoredProcedureInternal(sProc, requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}


Expand Down Expand Up @@ -182,7 +182,7 @@ public Mono<CosmosAsyncUserDefinedFunctionResponse> createUserDefinedFunction(
return createUserDefinedFunctionInternal(udf);
}

return withContext(context -> createUserDefinedFunctionInternal(udf, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createUserDefinedFunctionInternal(udf, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -280,7 +280,7 @@ public Mono<CosmosAsyncTriggerResponse> createTrigger(CosmosTriggerProperties pr
return createTriggerInternal(properties);
}

return withContext(context -> createTriggerInternal(properties, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createTriggerInternal(properties, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Mono<CosmosAsyncStoredProcedureResponse> read(CosmosStoredProcedureReques
return readInternal(options);
}

return withContext(context -> readInternal(options, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> readInternal(options, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -111,7 +111,7 @@ public Mono<CosmosAsyncStoredProcedureResponse> delete(CosmosStoredProcedureRequ
return deleteInternal(options);
}

return withContext(context -> deleteInternal(options, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> deleteInternal(options, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -132,7 +132,7 @@ public Mono<CosmosAsyncStoredProcedureResponse> execute(Object[] procedureParams
return executeInternal(procedureParams, options);
}

return withContext(context -> executeInternal(procedureParams, options, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> executeInternal(procedureParams, options, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand Down Expand Up @@ -169,7 +169,7 @@ public Mono<CosmosAsyncStoredProcedureResponse> replace(CosmosStoredProcedurePro
}

return withContext(context -> replaceInternal(storedProcedureSettings, options,
context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

String getURIPathSegment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Mono<CosmosAsyncTriggerResponse> read() {
return readInternal();
}

return withContext(context -> readInternal(context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> readInternal(context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -78,7 +78,7 @@ public Mono<CosmosAsyncTriggerResponse> replace(CosmosTriggerProperties triggerS
return replaceInternal(triggerSettings);
}

return withContext(context -> replaceInternal(triggerSettings, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> replaceInternal(triggerSettings, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -95,7 +95,7 @@ public Mono<CosmosAsyncTriggerResponse> delete() {
return deleteInternal();
}

return withContext(context -> deleteInternal(context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> deleteInternal(context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

String getURIPathSegment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Mono<CosmosAsyncUserResponse> read() {
return readInternal();
}

return withContext(context -> readInternal(context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> readInternal(context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -77,7 +77,7 @@ public Mono<CosmosAsyncUserResponse> replace(CosmosUserProperties userSettings)
return replaceInternal(userSettings);
}

return withContext(context -> replaceInternal(userSettings, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> replaceInternal(userSettings, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -90,7 +90,7 @@ public Mono<CosmosAsyncUserResponse> delete() {
return deleteInternal();
}

return withContext(context -> deleteInternal(context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> deleteInternal(context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -117,7 +117,7 @@ public Mono<CosmosAsyncPermissionResponse> createPermission(
}

final CosmosPermissionRequestOptions requesOptions = options;
return withContext(context -> createPermissionInternal(permission, requesOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> createPermissionInternal(permission, requesOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -144,7 +144,7 @@ public Mono<CosmosAsyncPermissionResponse> upsertPermission(
}

final CosmosPermissionRequestOptions requestOptions = options;
return withContext(context -> upsertPermissionInternal(permission, requestOptions, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> upsertPermissionInternal(permission, requestOptions, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Mono<CosmosAsyncUserDefinedFunctionResponse> read() {
return readInternal();
}

return withContext(context -> readInternal(context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> readInternal(context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -82,7 +82,7 @@ public Mono<CosmosAsyncUserDefinedFunctionResponse> replace(CosmosUserDefinedFun
return replaceInternal(udfSettings);
}

return withContext(context -> replaceInternal(udfSettings, context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> replaceInternal(udfSettings, context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

/**
Expand All @@ -101,7 +101,7 @@ public Mono<CosmosAsyncUserDefinedFunctionResponse> delete() {
return deleteInternal();
}

return withContext(context -> deleteInternal(context)).subscriberContext(TracerProvider.callDepthAttributeFunc);
return withContext(context -> deleteInternal(context)).subscriberContext(TracerProvider.CALL_DEPTH_ATTRIBUTE_FUNC);
}

String getURIPathSegment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ public static class Versions {
}

public static class StatusCodes {
public static final int OK = 200;
public static final int NOT_MODIFIED = 304;
// Client error
public static final int MINIMUM_STATUSCODE_AS_ERROR_GATEWAY = 400;
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.