Граф коммитов

2082 Коммитов

Автор SHA1 Сообщение Дата
Maya Painter 1afcacd316
[Internal] Query : Adds test coverage for custom serializers (#4114)
* initial cleanup

* test updates - working

* cleanup

* more cleanup

* more

* whoops

* Add results to basline

* adding payload to xml

* some generics

* cleanup

* Add datamember serializer

* reorder functions and test fix

* tostring() update and add case

* fix payload

* fix datamembertest

* cleanup

* cleanup

* PR comment

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2023-10-18 14:56:37 -07:00
Philip Thomas 28204bb5a2
Item Operations: Fixes JsonSerialization exception when MissingMemberHandling = Error on Json default settings when NotFound on Item operations. (#4125)
* issue 4115 initial checkin. need insight from issuer on reproducing this issue

* test refactoring and adding more coverage for other NotFound scenarios

* commit on some actionables

* setting JsonConvert.DefaultSettings to null so that other tests will not fail

* as requested, removed catches from test methods
2023-10-18 20:16:43 +00:00
Sourabh Jain f3a9cae960
Release 3.36.0: Fixes pipeline by removing ReleasePackage variable (#4130)
* remove release variable

* revert build config variable change also
2023-10-18 18:03:21 +00:00
Sourabh Jain 5777a3af0d
SDK 3.36.0 : Adds version bump and changelog (#4118)
* first draft

* updated changelog

* remove already released PRs

* updated pr links

* changelog and contract changes

* updated changelog

* updated changelog

* updated changelog

* remove 4071 from changelog as it should be internal PR

* removed an query internal log

* updated contracts
2023-10-18 11:51:56 -04:00
Sourabh Jain 51a8c6c2fe
TriggerOperation: Adds Upsert Operation Support (#4119)
* Added Upsert Trigger Operation Support

* updated contract

* fix test
2023-10-18 09:18:33 +00:00
Maya Painter 8f65cd2442
Query : Adds Missing QueryMetrics Documentation (#4127)
* Update ServerSidePartitionedMetrics.cs

* Update ServerSidePartitionedMetrics.cs
2023-10-17 07:39:29 -07:00
Nalu Tripician 20547bce55
[Internal] Direct Package: Adds version bump (#4120)
* direct version bump

* Code changes to fix emulator tests to comply with direct release 3.31.5.

---------

Co-authored-by: Debdatta Kunda <dkunda@microsoft.com>
2023-10-12 19:43:07 -07:00
Sourabh Jain 7db0aa08a7
Telemetry Options: Adds telemetry options in GA package (#4117)
* GA telemetry options and updated contract

* enabe requuest level option

* added request option in public contract
2023-10-12 11:45:42 -04:00
Arooshi Avasthy 4e2beda5ef
Distributed Tracing: Fixes traceid null exception issue (#4111)
* Fix traceid null exception issue

* Fixing merge conflicts

* Fixing merge conflicts

* Update script

* Code cleanup

* Updated change description

* updated comment description

* updated comment description

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2023-10-10 22:19:07 +00:00
iain e2fb347a4a
CosmosClientOptions: Adds support for multiple formats of Azure region names (#4016)
* Allow ComosClientOptions to take ApplicationRegion and ApplicationPreferredRegions in multiple region name formats.

This is a proposed fix for - https://github.com/Azure/azure-cosmos-dotnet-v3/issues/2330

* Address PR comment to avoid duplicating list of names.

* Remove the map table cache

The map table is only used on initialization, so there's no need to keep a cache of it for the lifetime of the application

* Only convert the region names when the client is initializing

The cache is created before converting all the names, so it only needs created once, but doesn't remain for the entire lifetime of the application

* Update tests

* Make RegionNameMapper an instantiable class

Instead of having a prepare/clear cache system on a static class, make RegionNameMapper a class that gets instantiated for use and let the ctor handle it.

* Remove debugging

* Update tests to actually test things

---------

Co-authored-by: Pradeep Chellappan <Pradeep.Chellappan@docusign.com>
Co-authored-by: Pradeep Chellappan <94089783+pradeep-chellappan@users.noreply.github.com>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
2023-10-10 15:59:39 +00:00
Maya-Painter 88fd4cdb9b
Revert "Query: Adds new system strings in JsonBinaryEncoding, replacing 1-byte user strings (#3400)" (#4108)
This reverts commit 9140890d78.
2023-10-09 22:48:52 +00:00
Sourabh Jain a5dec66060
Distributed Tracing: Fixes SDK responses compatibility with opentelemetry response (#4097)
* adding tets

* wip

* wip2

* fix code

* add tests

* fix test

* fix test

* remove consoles

* fix indent and remove unused imports

* internal to private rollback

* added docs

* removed unused imports

* added exception in message

* fix exception catching
2023-10-09 18:38:05 +00:00
Sourabh Jain 75eec5c33a
Benchmark: Fixes to show estimated cost of a container only when new container is getting created (#4109)
* Showing Estimated Cost only when new container is getting created

* read container to get container response

* disable client telemetry by default

* removed unused imports

* resolve merge conflict

* fixed name

* fix container not found

* removed the message

* Update Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/Program.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* removed line space

---------

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2023-10-09 20:29:11 +05:30
Kevin Pilch 7ed22ac55b
[Internal] Build: Adds CodeQL support in nightly builds (#4113)
* Update azure-pipelines-nightly.yml

* Newlines in variables sections
2023-10-06 16:36:44 -07:00
Sourabh Jain 72e96faca5
Client Telemetry: Adds new public APIs (#4056)
* Revert "[Internal] Client Telemetry: Refactors code for collectors (#4037)"

This reverts commit e2311a9fdc.

* Revert "Revert "[Internal] Client Telemetry: Refactors code for collectors (#4037)""

This reverts commit f04234b761.

* firdst draft

* initialize object

* null handle

* update contracts

* compilation charges

* fix tests

* public API changes

* add docs

* contract updated

* fixed tests

* by default switch of te;emetry in sdk

* fix tests

* fix assertion

* incorporate review comments

* fetaure flag fix in script

* switch case

* add test

* fix tests

* fix test

* fixed run.sh

* minor changes

* code refactor

* changed default values and fix tests
2023-10-05 01:35:46 +05:30
Kiran Kumar Kolli b03df6bb12
Chaning Bounded to Strong (#4103) 2023-10-04 14:29:36 +00:00
leminh98 11fa17b6e9
Query: Adds LINQ RegexMatch Extension method (#4078)
* Add support for translation to REgexmatch

* Add test and fix some indexing issues

* remove visit explicit, add some comment. Update public contract and added the baseline for the test

* add the missing baseline

* added test

* address code review

* update csproj

---------

Co-authored-by: Minh Le <leminh@microsoft.com>
2023-10-03 22:37:11 +00:00
Aditya Kotalwar 101b9b1ad5
[Internal] Query: Fixes minor issues with TestQueryValidityCheckWithODEAsync (#4105)
* Fixed typos and made test more readable

* Another typo
2023-09-28 22:35:21 +00:00
Aditya Kotalwar f312f6a4c3
[Internal] Query: Adds check to detect unsupported queries for Optimistic Direct Execution code path (#4090)
* Added query validity function on Ode code path

* Fixed syntax

* Updated to use string search instead of query parsing

* Updated string search to now be regex

* Changed location of caller for QueryValidityCheck()

* Updated regex string

* Added extra test coverage

* Added const string to error messages

* Added compile flag to Regex

* Fixed comments

* Added missing null reference coverage

* Removed extra foreach loop in test

* Removed useQueryPlan bool in test code
2023-09-28 19:03:44 +00:00
Aditya Kotalwar 455656753e
[Internal] Query: Adds deserializing logic for ClientQL Coordinator Distribution Plan (#3988)
* First commit.

* Added remaining classes for ClientQL structure

* Added ClientQLDeserializing class and added CoordinatorDistributionPlan folder

* Added support for all Enumerable and Scalar Expressions

* Added baseline tests for testing CoordinatorDistributionPlan deserializing

* Made ClientQL objects immutable

* Added error and null checks for Value calls

* Updated List<> with IReadOnlyList<>

* Made most functions in the Deserializing class private and static

* Added static constant class for Enumerable expressions

* Added null checking for arrays

* Removed null checks from deserializing array functions

* Removed support for JavaScript

* Removed support for Unwind

* Function names changed

* Removed few functions.

* Updated constants class

* Function Formatting for ClientQL Deserializing (#4062)

* Adding error handling for Deserializing functions

* Finished updating code to remove all dependency on Newtonsoft.Json

* Removed try catch for all upper level functions

* Resolved comments

* Resolved comments pt2

* Updated error message

* Resolved comments pt3

* Changed parameter types from int to long

* Removed ClientQLDelegate

* Syntax Fixes

* Removed ClientQLFlattenEnumerable file. This is JS.

* Fixed List helper functions

* Made singleton constructors from public to private

* Updated the DeserializeClientQLBinaryLiteral function

* Renamed ClientQL to QL

* Fixed variable names

* Updated more variable names

* Removed support for Type

* Removed all extra newlines

* Added null checks

* Updated the name CoordinatorDistributionPlan to ClientDistributionPlan

* Removed all support for Cassandra, Mongo and Binary Literal

* Updaed ClientQL to Cql

* Updated baseline test class property.
2023-09-26 13:38:58 -07:00
Sourabh Jain 08e7f54730
Distributed Tracing: Fixes dependency failure on appinsights (#4098)
* first draft

* refactor

* fix tests

* fixed condition
2023-09-26 07:08:47 -07:00
leminh98 9f8d84860d
[Internal] Query: Adds Index Metrics V2 Object Model (#4058)
* making necessary ownership change

* made change to ownerships

* header test

* Call to TryCreate instead of Create in Responsemessage

* Add baseline test infra for index metric parser

* update baseline files

* Add parse retry logic

* Update headers test

* address code review

* address code review

* fix tests

* Update csproj file

* Adopt the new header

* update the response to parse with text instead of base 64

* test for headers adoption of uri escape

* Add URI Decode logic

* Update baseline

* Update with the new header name from back end

* update the query parsing requirement

* New Index Metrics DOM

* fix build error

* Code clean up

* Address code review

* Turn off switching to V2

* Fix test

* fix test errors

* Address code review comment

* addressed code review

* removed the empty entity

* update test parse

* update test

---------

Co-authored-by: Minh Le <leminh@microsoft.com>
2023-09-20 12:00:09 -07:00
Sourabh Jain 373ab9ec9d
Bechmark : Fixes benchmark runs (#4088)
* pk to result container

* set pk

* pk value fix

* update run.sh

* remove changes value

* remove telemetry service end point

* cleanup
2023-09-20 20:32:15 +05:30
Aditya 258d960ae3
[Internal] Query: Fixes escaped string parsing in SqlParser (#4054)
* Initial commit

* Addressed comments.
2023-09-18 18:56:55 +00:00
Nalu Tripician 83509cc173
SDK 3.35.4: Adds version bump and changelog (#4087)
* bump version and changelog

* added apis

* Update changelog.md
2023-09-15 13:35:33 -07:00
Sourabh Jain 52d0436104
ClientTelemetry : Adds logic to call client config in every 10 minutes (#4071)
* first draft

* fix tests

* fixes

* fix tests

* remove consoles

* added exception

* remove comment

* fix tests

* fix test

* rev comments

* rev comments

* refactor code

* remove log from api exception
2023-09-15 08:37:47 -07:00
leminh98 0a0e5ae69d
[Internal] Query: Fixes LINQ Test Organization (#4076)
* preliminary change

* Add some more boiler plate code

* move all linq test to the same folder; add some groupBy test

* fix references error in test refactoring

add code for group by substitution. Still need to adjust binding post groupby

* preliminary for the groupby functions with key and value selector

* trying to change collection inputs for group by

* Undo the LINQ GROUP BY part

* fix accidental changes

---------

Co-authored-by: Minh Le <leminh@microsoft.com>
2023-09-15 06:51:18 +00:00
Nalu Tripician 391c3d9872
Subpartitioning: Fixes bug for queries on subpartitioned containers (#3934)
* initial fix, needs testing on prod

* test fix

* clean up pr

* query rework

* refactors previous changes

* requested changes and bug fixes

* nits

* requested changes

* bug fixes

* start of test

* added test

* nit: changed name of EffectivePartitionKeyRanges to EffectiveRangesForPartitionKey

* Address code comments

* Address code comments

* saving work

* addresses code comments

* nit, spacing

* PartitionKeyHash fixes

* Fixes bugs in tests

* Removed bad method, added additional test coverage

* Removed EffectivePartitionKeyString use

* test fix

* requested changes

* Requested changes

* fixed test

* Test fix

* Added comment

---------

Co-authored-by: SrinikhilReddy <nanarava@microsoft.com>
2023-09-14 14:35:07 -07:00
Sourabh Jain be0c0981b8
first draft (#4079) 2023-09-12 07:00:41 -04:00
Kiran Kumar Kolli b909bd7ee4
[Internal] Benchmark tool: Fixes code refractoring to model the metrics as EventSource (#4040)
* Adding metrics for Benchmark tool.

* Adding OpenTelemetry.

* Revert "Adding OpenTelemetry."

This reverts commit c7da088469.

* Telemetry for windowed percentiles.

* OpenTelemetry, AppInsights and Dashboard.

* Removing DiagnosticDataListener.

* Code styling, comments and clean-up.

* Fixing issues with dashboard.

* Fixing positions of charts on the dashboard.

* Fixing the dashboard.

* Updating titles and subtitles.

* Removing ILogger and other not required references.

* Fixing code review points.

* Fixing issues after rebase.

* Removing unnecessary changes.

* Fixing code review points.

* Adding metrics for Benchmark tool.

* Adding OpenTelemetry.

* Revert "Adding OpenTelemetry."

This reverts commit c7da088469.

* Telemetry for windowed percentiles.

* OpenTelemetry, AppInsights and Dashboard.

* Removing DiagnosticDataListener.

* Code styling, comments and clean-up.

* Fixing issues with dashboard.

* Fixing positions of charts on the dashboard.

* Fixing the dashboard.

* Updating titles and subtitles.

* Removing ILogger and other not required references.

* Fixing code review points.

* Fixing issues after rebase.

* Removing unnecessary changes.

* Fixing code review points.

* Fixing code review points.

* make MetrcisCollectorProvider non static and remove locks

* fix

* fixes

* use static class name TelemetrySpan.IncludePercentile

* use app insights connection string

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/Program.cs

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/Program.cs

* rename AppInsightsConnectionString

* fix

* fix comments

* fix if AppInsights c string is not set

* summary

* fix

* remove unnecessary collector types

* remove unnecesary metere provicer

* add event source

* remove folder

* fix

* split success and failed latencies

* Code refractor to use EvenSource design pattern for metrics

* Fixing build breaks

* Removing BenchmarkExecutionEventSource

* Fixign misc things

* Some extra cleanup

* use TimeSpan except milliseconds

* fix metrics publication

* fix metrics publication

* move tests to benchmark folder

* move back benchmark test

* use background task for flushing metrics

* remove sync metrics flushing

* split failed and success operations

* fix latenclies charts

* fix benchmark run command

* remove ShouldUnsetParentConfigurationAndPlatform=false

---------

Co-authored-by: Mikhail Lipin <v-milipin@microsoft.com>
Co-authored-by: David Chaava <chaava01@gmail.com>
Co-authored-by: David Chaava <v-dchaava@microsoft.com>
2023-09-11 19:48:13 +00:00
Maya-Painter 4111caed99
[Query][Internal] Adds tests for aggregate queries with invalid continuation tokens (#4052)
* partial test

* Tests and error handling update

* update error message

* typo

* update original err msg

* combine tests

* test cleanup

* undo error message update
2023-09-11 15:29:16 +00:00
Maya-Painter b7b1064ab7
[Query] Adds public backend metrics property to Diagnostics (#4001)
* initial commit

* some pr comments, WIP

* Refactor

* more

* Public constructors and modify accumulators

* accumulator updates and undo test changes

* add test

* PR comments

* bug fix

* ToString() refactor

* contract updates

* test updates

* small fixes

* text fix

* Update accumulators

* fix

* PR comments

* small fix

* Rename BE -> ServerSide

* more renaming

* Update API and tests

* separate public and internal classes

* API update

* change namespace

* Pr comments

* public constructors and bug fix

* API updates

* renaming and test updates

* PR comments

* more PR comments

* PR comments, test additions

* API updates and more tests

* tests and pkrangeid update

* PR comments

* more PR comments

* smol test fix

* PR comments - renaming properties and constructor rehash

* contract update

* seal classes and private fields.

* update indexHitRatio calc

* mocking refactor to abstract classes

* contract updates

* PR comments - Update documentation
2023-09-08 12:39:48 -07:00
David Chaava 7c3f5e1dec
[Internal] Benchmark tool: Fixes benchmark run command using OSSProjectRef parameter (#4066)
* fix benchmark run command using OSSProjectRef parameter

* remove ShouldUnsetParentConfigurationAndPlatform=false

---------

Co-authored-by: David Chaava <v-dchaava@microsoft.com>
2023-09-05 21:55:18 +02:00
Sourabh Jain c72ebc8574
[Internal] Client Telemetry: Adds client config api call to get latest flag status (#4050)
* first draft

* tets fix

* fix dependent projects

* reduce refresh time in tests

* fix tests and added comments

* fix diagnostic handler fix

* fix test

* adding test

* ret pushmove console

* fix test

* provide options to enable/disable this featire in benchmark and ctl proj

* updated trace message

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* remove import

* updated traces

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* test fix

* remove null assignment

* fix test

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2023-08-31 17:55:30 +00:00
David Chaava 3aced24bea
[Internal] Benchmark tool: Adds feature to the dashboard that generate plots queries for metrics with a workload name prefix, depending on the benchmark workload type. #4048 (#4053)
* Merge remote-tracking branch 'origin/master' into users/v-dchaava/benchmark-diagnostics/3889

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/README.md

* add metrics prefixes

* fix chart metrics names

* fix dashboard queries according selected workload type

---------

Co-authored-by: David Chaava <v-dchaava@microsoft.com>
2023-08-29 19:04:53 +00:00
David Chaava 83dd4b5434
[Internal] Benchmark tool: Adds requests diagnostic data capture and upload to storage (#3926)
* azure-cosmos-dotnet-v3/issues/3889
add diagnostics data capturing during bechmark and storing into blob storage after finish

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/README.md

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/scripts/custom-script.sh

* fix bug

* fix review comments

* fix comments

* fix comments

* fix case

* add tests and refactoring

* fix

* unify logging

* add summaries

* fix method summary

* fix BOM

* fix review comments

* fix comment

* fix line breaks

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/ARMTemplate/README.md

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/README.md

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/README.md

* catch exceptions

* add container prefix

* ResultStorageContainerPrefix

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/scripts/execute.sh

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/scripts/custom-script.sh

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* Update Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/BenchmarkConfig.cs

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>

* Update Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* Update Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/BenchmarkConfig.cs

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>

* Update Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/Fx/DiagnosticDataListener.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* fix comments

* fix comments

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/README.md

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/scripts/execute.sh

* make BlobCLient Lazy singleton

* new file:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/README.md
	modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/azuredeploy.json

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/README.md

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/scripts/execute.sh

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/AzureVmBenchmark/scripts/execute.sh

* check on diagnostic colletiong

* remove locks and improve logs appending

* removed unnecesary directory

* removed unnecesary directory

* removed unnecesary directory

* new file:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/ARMTemplate/README.md

* add dashboard

* fix arm template

* change branch

* fix

* add dashboard name

* fix dashboard

* add logging

* fix

* trace error

* fix devide zero

* add trace errors

* fix

* fix

* fix

* fix

* fix

* migrate to text writer

* fixes

* diagnostic logs

* add diagnostic logs

* remove flush and reset

* metric collection window lock

* collection window

* force flush every n seconds

* fix bug

* fix

* Update Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/README.md

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* change deafult metric interval

* constant

* fix container creating conflict issue

* change azuredeply branch name

* remove ArmTemplate folder

* fix DiagnosticLatencyThresholdInMs default value

---------

Co-authored-by: David Chaava <v-dchaava@microsoft.com>
Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2023-08-23 19:57:27 +00:00
Matias Quaranta f56944ef55
[Internal] Automation: Adds logic to tag customer-reported issues (#4047)
* Added customer-reported label

* Changing condition

* padding

* more padding

* permission name

* padding
2023-08-23 08:30:36 -07:00
Sourabh Jain e2311a9fdc
[Internal] Client Telemetry: Refactors code for collectors (#4037)
* refactored code

* implemented review comments

* test fix

* fix tests

* fix test

* fix test

* logger fix

* update contract

* fic test

* updated benchmarks
2023-08-22 10:25:01 -07:00
Sourabh Jain 2257ca2fbe
[Internal] Client Telemetry: Adds Client Telemetry pipeline sending data to service (#3900)
* first draft

* comment other pipelines

* pint variables

* commnet other pipelines

* added env variable

* minor changes

* update env variable

* print env variable

* add space in end

* fix test

* fix tests

* fix test

* fix tests

* remove response interceptor

* logs

* debuug mode

* 3failing test to print llgs

* minor refactoring

* 2nd windows-2019

* fix ct tests

* 2remove debugging

* fix tests

* revert

* ncomment pipelines

* fix test

* minor changes

* release and emulator pipeline

* update pipelines

* ignore abstract class test

* fixing pipeline

* refactor code

* change it to class name to run tests

* added emulator setup

* 1 temp commit

* env variable

* renames env variable

* fix tests

* add condition

* fix tests

* reorder env variable

* revert pipeline

* did some clean up

* change to revert

* Revert "change to revert"

This reverts commit 03db3c104505dc7b8f3cea267835c92ca530f8f4.

* fix typos

* throw if exception intercepter is null

* remove modelling changes

* removed virtaul

* Update Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Utils/HttpHandlerHelper.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* added condition for pipelines

* Revert "added condition for pipelines"

This reverts commit f9a208cd28e01badee97a2eb770a486cea67c1f0.

* changed cond

* fix codn

* more enhancement

* testing for release pipeline

* refactore code and using test category

* added comments on test

* refactor pipeline code

* fix variables

* fix pipeline

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2023-08-22 16:26:27 +05:30
Rinat Minibaev ce38cc1b22
Documentation: Adds additional note for GetContactedRegions method (#4042)
* Added small remark for GetContactedRegions method documentation

* Moved to remarks
2023-08-18 17:12:46 +00:00
Debdatta Kunda 48af69ecab
GatewayAddressCache: Fixes Unobserved Exception During Background Address Refresh (#4039)
* Code changes to fix unobserved exception during background address refresh.

* Code changes to add exception handler in task.

* Code changes to fix null ref exception.

* Revert "Code changes to fix null ref exception."

This reverts commit 83f90d578b.

* Revert "Code changes to add exception handler in task."

This reverts commit c49ed81627.

* Code changes to address review comments.

* Revert "Code changes to address review comments."

This reverts commit d2b9f6b501.
2023-08-16 23:24:03 +00:00
Mikhail Lipin 946dd4a95f
[Internal] Benchmark tool: Adds Cosmos Benchmark Metrics (#3950)
* Adding metrics for Benchmark tool.

* Adding OpenTelemetry.

* Revert "Adding OpenTelemetry."

This reverts commit c7da088469.

* Telemetry for windowed percentiles.

* OpenTelemetry, AppInsights and Dashboard.

* Removing DiagnosticDataListener.

* Code styling, comments and clean-up.

* Fixing issues with dashboard.

* Fixing positions of charts on the dashboard.

* Fixing the dashboard.

* Updating titles and subtitles.

* Removing ILogger and other not required references.

* Fixing code review points.

* Fixing issues after rebase.

* Removing unnecessary changes.

* Fixing code review points.

* Adding metrics for Benchmark tool.

* Adding OpenTelemetry.

* Revert "Adding OpenTelemetry."

This reverts commit c7da088469.

* Telemetry for windowed percentiles.

* OpenTelemetry, AppInsights and Dashboard.

* Removing DiagnosticDataListener.

* Code styling, comments and clean-up.

* Fixing issues with dashboard.

* Fixing positions of charts on the dashboard.

* Fixing the dashboard.

* Updating titles and subtitles.

* Removing ILogger and other not required references.

* Fixing code review points.

* Fixing issues after rebase.

* Removing unnecessary changes.

* Fixing code review points.

* Fixing code review points.

* make MetrcisCollectorProvider non static and remove locks

* fix

* fixes

* use static class name TelemetrySpan.IncludePercentile

* use app insights connection string

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/Program.cs

* modified:   Microsoft.Azure.Cosmos.Samples/Tools/Benchmark/Program.cs

* rename AppInsightsConnectionString

* fix

* fix comments

* fix if AppInsights c string is not set

* summary

* fix

* remove unnecessary collector types

* remove unnecesary metere provicer

* add event source

* remove folder

* fix

* split success and failed latencies

* fix

* fix

---------

Co-authored-by: David Chaava <chaava01@gmail.com>
Co-authored-by: David Chaava <v-dchaava@microsoft.com>
2023-08-15 22:06:04 +00:00
Rinat Minibaev e708ec9025
Documentation: Fixes article links (replaced links V2 to V3 SDK version) + Azure Cosmos DB typo (#4031)
* Documentation link fix

* Fixed Typo "Azure CosmosDB"→"Azure Cosmos DB"
2023-08-11 01:14:47 +00:00
Debdatta Kunda efb90f0941
Code changes to update change log for release 3.35.3 (#4032) 2023-08-10 20:25:15 +00:00
Debdatta Kunda 32827f7846
Code changes to fix race condition by calling dispose too early. (#4030) 2023-08-10 19:59:38 +00:00
Sourabh Jain f8f38017f0
[Internal] Distributed tracing: Adds a sample to collect activities and events using custom listener (#4021)
* custom listener example

* removed unwanted code

* add comments

* fix appsettings

* revert changes
2023-08-09 21:35:06 +00:00
Debdatta Kunda 27b9350727
3.35.3: Adds new SDK versions and contract files (#4024)
* Updated change log and bumped up the patch version.

* Code changes to update the change log message.
2023-08-08 21:08:02 -07:00
Debdatta Kunda e05e3eb23c
Code changes to disable replica validation in preview package. (#4019) 2023-08-08 21:39:37 +00:00
akotalwar c46614b931
Query: Adds ODE continuation token support for non-ODE pipelines (#4009)
* Added code to throw exception if ODE continuation token goes into non ODE pipeline

* Removed count variable

* Updated test name

* Removed ODE continuation token logic from caller class

* Simplified code

* Fixed comments

* Updated continuation token cast

* Removed const string for continuation token

* Added Ignore flag for test

* Added baseline test

* Updated baseline test
2023-08-05 20:44:45 +00:00
akotalwar 8c4f99f35e
[Internal] Query: Adds performance testing for OptimisticDirectExecution pipeline (#3839)
* Infrastructure for performance testing with ODE pipeline.

* Resolve comments

* Removed randomization from data creation process

* Fixed comments

* Removed Query and EnableODE from QueryStatisticsMetrics, as they do not relate to query statistics.

* Removed try catch to make CreateItemAsync call always succeed

* Removed one liner functions

* Removed code from MetricsSerializer and QueryStatisticsDatumVisitor files

* Fixed comments

* Removed request Charge check

* Bug in Debug Assert

* Test

* Bug in debug assert fix

* Fixed second bug in Metrics Accumalator class

* Added ignore flag to ode perf tests so that they do not run on every loop build

* Added comment explaining the Ignore flag.
2023-08-05 13:01:59 -07:00