-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
When using the library with a connection string it adds in two interceptors that are used to add a tag to underling commands among other things:
Line 123 in 8ef23f3
| spannerOptionsAction?.Invoke(new SpannerDbContextOptionsBuilder(optionsBuilder)); |
However if we use a spanner connection directly these interceptors aren't added in, meaning this functionality doesn't work:
Lines 80 to 81 in 8ef23f3
| optionsBuilder.AddInterceptors(TimestampBoundHintCommandInterceptor.TimestampBoundHintInterceptor); | |
| optionsBuilder.AddInterceptors(TagHintCommandInterceptor.TagHintInterceptor); |
Environment details
- Programming language: C#
- OS:
- Language runtime version: dotnet 10
- Package version: 3.10.0 / 4.0.0
Steps to reproduce
- Use a spanner connection when setting up EF
- Use
WithRequestTagextension - Check whether spanner tag was applied
- Making sure to follow these steps will guarantee the quickest resolution possible.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.